HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 9th, 2000, 01:33 AM
Pro L Pro L is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 3 Pro L User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #2  
Old October 11th, 2000, 08:31 AM
vashna vashna is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 3 vashna User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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...

Reply With Quote
  #3  
Old October 11th, 2000, 09:54 AM
Pro L Pro L is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 3 Pro L User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > Please Help


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway