|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi All!
I am having trouble with rollovers and frames. I have the frames setup and the rollovers sort of work across the frames, but I cant seem to get the rollover that is in the navigation frame to work. Here is what I would lilke as a final result in frames: http://www.blacksglass.com/new Here is where I am at: http://www.blacksglass.com/new/blackindex.html As you will see the rollovers are working in the corner image, but not on the the links. What am I doing wrong? Please Help. Thanks Pro L |
|
#2
|
|||
|
|||
|
Hi there
Try this script, this is a way I tackled the same problem. Put this script in your HEAD tag ---------------------------------------- function getAppVersion(){ appname= navigator.appName; appversion = navigator.appVersion; majorver = appversion.substring(0, 1); if ( (appname == "Netscape") && ( majorver >= 3 ) ) return 1; if ( (appname == "Microsoft Internet Explorer") && (majorver >= 4) ) return 1; return 0; } function chgImg(myNum, myName, mySku) { if (getAppVersion()) { document[myName].src = img[myNum].src; document.text.src = box[mySku].src; } } imgsrc = new Array(); imgsrc[0] = "../m-graphics/main-menu/family_a.gif"; imgsrc[1] = "../m-graphics/main-menu/family_b.gif"; imgsrc[2] = "../m-graphics/main-menu/modern_a.gif"; imgsrc[3] = "../m-graphics/main-menu/modern_b.gif"; imgsrc[4] = "../m-graphics/main-menu/tourer_a.gif"; imgsrc[5] = "../m-graphics/main-menu/tourer_b.gif"; imgsrc[6] = "../m-graphics/main-menu/ideal_a.gif"; imgsrc[7] = "../m-graphics/main-menu/ideal_b.gif"; imgsrc[8] = "../m-graphics/main-menu/dealer_a.gif"; imgsrc[9] = "../m-graphics/main-menu/dealer_b.gif"; imgsrc[10] = "../m-graphics/main-menu/news_a.gif"; imgsrc[11] = "../m-graphics/main-menu/news_b.gif"; boxsrc = new Array(); boxsrc[0] = "../m-graphics/main-menu/empty.gif"; boxsrc[1] = "../m-graphics/main-menu/family.gif"; boxsrc[2] = "../m-graphics/main-menu/modern.gif"; boxsrc[3] = "../m-graphics/main-menu/tourer.gif"; boxsrc[4] = "../m-graphics/main-menu/ideal.gif"; boxsrc[5] = "../m-graphics/main-menu/dealer.gif"; boxsrc[6] = "../m-graphics/main-menu/empty.gif"; if (getAppVersion()){ img = new Array(); for (i = 0; i < imgsrc.length; i++){ img[i] = new Image(); img[i].src = imgsrc[i]; } box = new Array(); for (z = 0; z < imgsrc.length; z++){ box[z] = new Image(); box[z].src = boxsrc[z]; } } ----------------------------------------- Call your top right image "text" Then on your rollovers, do the following. ON MOUSEOVER chgImg(1,'family',1) ON MOUSEOUT chgImg(0,'family',0) Call the rollover image "FAMILY" and the give the AHREF the name "FAMILY" ok so far??? hope so. You can see this in action at the following adress, www.swiftleisure.co.uk Any problems, let me know. Pete P.S. You can change the name, dont have to be family, sorry about that... |
|
#3
|
|||
|
|||
|
Thanks alot for the reply! I went to your site and there are errors on it. I am hesitant to try your script, but thanks anyway!
Pro L |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > Please Help |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|