Posts Tagged ‘css’

Overlay Popup’s

Sunday, February 7th, 2010

On a webpage you usually have thumbnail images which you may want the user to enlarge, to view clearer. You can either link it directly to the image, or even better use a popup window so users dont get directed away from the page they were viewing. Sometimes popups can be annoying though, and usually people have browser popup blockers enabled.

Recently I’ve been seeing the use of Javascript for image enlarging, when the user clicks on a thumbnail to enlarge it, the image appears simply ontop of the webpage as an overlay. I really like this method because it looks nicer and a little more professional.

For my portfolio website (which has been developing very very slowly) I’ve integrated this technique for not only images but video as well, so the page will initally display just thumbnails or screenshots of the video, then once clicked the enlarged version will open ontop of the page in the same window.

Looking through the web i didnt really find any clean (free) template code, so i decided to just make my own. It was simple enough using javascript, and as a bonus, I now can show off some javascript knowledge :D . My method just uses JS to create a new fullscreen semi transparent box (div) to dim the background, and then another box in the middle which displays the content (i.e. video or image) as a closeable “window”.

pud9y popup JS code

CSS formats the ‘olbg’ and ‘ol’ div’s, but the JS just spits out the html content based on the variables. ‘type’ determines which html code to display, e.g. type=video will spit out the youtube embeding code and insert the url of the video using ‘input1′. ‘a’ is simply the anchor point in which the page will jump to when the popup is closed.

Example of the code in the works can be seen on my animations page:
http://pud9y.com/animation.html

Blog Theme Update

Sunday, January 17th, 2010

The blog is finally themed!! none of this hideous default business.

Not really much is different so far, just images to match my portfolio theme. There wasnt really much i had to fiddle with because the default theme is pretty similar. But wordpress editings messy! so many places to edit, you’d think just editing the stylesheet would work, but no!

I might change some colours around and a bit of the layout, but other than that should end up like this. Now if only i could finish my portfolio…

Website Concepts

Monday, December 7th, 2009

I’m in the middle of finishing the menu’s for my portfolio website. Thought I’d share some of the concepts before it went online.

website concept layout

website concept layout final

The second is the design of the final layout i settled for. Diagonal tabs for each pages and mouseover effects that describe each pages content, all in CSS :)

(Diagonals are tricky)(but so cool)

Alive on the Web

Wednesday, December 2nd, 2009

This is really the first time I’ve had my own website, on my own webspace, and trying to think of the best way to express myself and my abilities in a concise website is tricky.

In website design theres always the question of, should it be fun, interesting and arty (to express my creative and ‘designer’ personality) or should it be functional, simple and web standard (for the expression of my programming and usability knowledge). You’ll always try to do both, but in the end it has to be either CSS or FLASH and you cant try to do one thing with the other.

I’ve got some plans, and CSS is always the more practical method (although my FLASH knowledge is probably more superior) I’m thinking to develop a nice clean website that still expresses my graphics design and creative abilities, and in the future possibly develop a flashy interactive version if it comes to that.

colour scheme im planning, with majority being grey white and blue

colorscheme

blog will ofcourse get the same treatment, but for now default layouts FTW