Date: 05/11/05 (WebDesign) Keywords: html, java, web Alright, Javascripters of the Web Design community. I'm very, very new to Javascript. So new, that I can't get a simple rollover effect to work. Here's the issue:
if (document.images)
{
document.news = new Image(85,30);
document.site = new Image(85,30);
document.news.src = "images/news1.gif";
document.site.src = "images/site1.gif";
}
function focusOn(imgName) {
if (imgName=='news')
document.news.src="images/news2.gif";
else if (imgName=='site')
document.site.src="images/site2.gif";
}
function focusOff(imgName) {
if (imgName=='news')
document.news.src="images/news1.gif";
else if (imgName=='site')
document.site.src="images/site1.gif";
}
Any help on this matter will be greatly appreciated, since I have to finish this stupid effect before I go on to more important jobs. Source: http://www.livejournal.com/community/webdesign/874143.html
|