Tag Archive for 'javascript'

Hide div and the white space it occupies

Problem
Most of the developers will say “I can use javascript and CSS ‘visibility’ property to do that”, but shortly after that they’ll realize that this is not enough. This solution will hide the div tag content, but the space it occupies will stay.
You can reproduce this behavior using the code below:

if (objDiv.style.visibility == ‘visible’ […]

Image rollover using CSS

Today I read a really cool article about creating image rollover effect using CSS and one image. This totally eliminates the usage of Javascript and OnMouseOver and OnMouseOut attributes.
Browsers supported: IE 5.5+, Firefox 1.07+, Opera 7.23+, Mozilla 1.7.12+, Netscape 6.02+, Safari 2.0+, Konqueror 3.4.3+
You can review the full artcile with example how to achieve […]

“Back” link not working in Firefox

Maybe some of you use the following approach to create “back” links:
<a href=”#” onclick=”javascript:history.back();”>back</a>
I used to do it this way until it turns out that this is not working under Firefox.
Fortunately I found the solution while I was reading an article posted at Code Project website. The back button there was working even in […]




Google

Blogroll


Blogroll Me!

Enter your email address:

Delivered by FeedBurner







Academics Blogs - Blog Top Sites