Dreamweaver rollover issue
Posted: 26 February 2011 07:26 AM   [ Ignore ]
Newbie
Rank
Total Posts:  3
Joined  2011-02-26

The rollover buttons javascript doesn’t work on the homepage:
http://www.datetopia.com/

It works fine on other pages:
http://www.datetopia.com/services-dating-matchmaker-software-websites.html

Any ideas why?

<!--
function newImage(arg) {
if (document.images) {
rslt = new Image();
rslt.src = arg;
return rslt;
}
}

function changeImages() {
if (document.images && (preloadFlag == true)) {
for (var i=0; i<changeImages.arguments.length; i+=2) {
document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
}
}
}

var preloadFlag = false;
function preloadImages() {
if (document.images) {
home_over = newImage("images/home-over.gif");
products_over = newImage("images/products-over.gif");
portfolio_over = newImage("images/portfolio-over.gif");
services_over = newImage("images/services-over.gif");
contact_over = newImage("images/contact-over.gif");
preloadFlag = true;
}
}

// -->

Web Design

Profile
 
 
Posted: 02 March 2011 12:46 AM   [ Ignore ]   [ # 1 ]
Newbie
Rank
Total Posts:  1
Joined  2011-03-02

You need to maintain some changes at bottom of script.

Profile