Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Help Fixing Scripting Errors
Old 11-30-2007, 02:49 AM Help Fixing Scripting Errors
Snot's Avatar
Super Talker

Posts: 132
Name: Chase
Trades: 0
Can you please tell me how to fix whats wrong?


Quote:
<script language="JavaScript"><!--

browserName = navigator.appName;

browserVer = parseInt ( navigator.appVersion );



version = "n2";

if ( browserName == "Netscape" && browserVer >= 3 ) version = "n3";

if ( browserName == "Microsoft Internet Explorer" && browserVer >=4 ) version = "e4";



if ( version == "n3" || version == "e4" )

{



about_on = new Image ( 134, 94 );

about_on.src = "menuimages/about_on.gif";

products_on = new Image ( 72, 69 );

products_on.src = "menuimages/products_on.gif";

news_on = new Image ( 134, 70 );

news_on.src = "menuimages/news_on.gif";

links_on = new Image ( 134, 94 );

links_on.src = "menuimages/links_on.gif";

guestbook_on = new Image ( 134, 94 );

guestbook_on.src = "menuimages/guestbook_on.gif";

email_on = new Image ( 134, 70);

email_on.src = "menuimages/email_on.gif";





about_off = new Image ( 134, 94 );

about_off.src = "menuimages/about_off.gif";

products_off = new Image ( 134, 108 );

products_off.src = "menuimages/products_off.gif";

news_off = new Image ( 134, 70 );

news_off.src = "menuimages/news_off.gif";

links_off = new Image ( 134, 94 );

links_off.src = "menuimages/links_off.gif";


guestbook_off = new Image ( 134, 108 );

guestbook_off.src = "menuimages/guestbook_off.gif";

email_off = new Image ( 134, 70 );

email_off.src = "menuimages/email_off.gif";






}



function button_on ( imgName )

{

if ( version == "n3" || version == "e4" )

{

butOn = eval ( imgName + "_on.src" );

document [imgName].src = butOn;

}

}



function button_off ( imgName )

{

if ( version == "n3" || version == "e4" )

{

butOff = eval ( imgName + "_off.src" );

document [imgName].src = butOff;

}

}

// --></script>
__________________

Please login or register to view this content. Registration is FREE
Snot is offline
Reply With Quote
View Public Profile Visit Snot's homepage!
 
 
Register now for full access!
Old 11-30-2007, 04:09 AM Re: Help Fixing Scripting Errors
Snot's Avatar
Super Talker

Posts: 132
Name: Chase
Trades: 0
I would also like help removing all the old code that is no longer needed.

Thanks so much for all your help
__________________

Please login or register to view this content. Registration is FREE
Snot is offline
Reply With Quote
View Public Profile Visit Snot's homepage!
 
Old 11-30-2007, 12:08 PM Re: Help Fixing Scripting Errors
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
I would also like help removing all the old code that is no longer needed.
probably all of it given that it seems to be covering for very old versions of NS & IE

What are you trying to achieve and what is it not doing ?
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-30-2007, 01:12 PM Re: Help Fixing Scripting Errors
Snot's Avatar
Super Talker

Posts: 132
Name: Chase
Trades: 0
I don't know really. It was a pre made layout that I have been editing.

I think it has something to do with the mouse over effect you get with my images.

That is the only thing out of the ordinary that my page does.

Thanks so much for helpng me out
__________________

Please login or register to view this content. Registration is FREE
Snot is offline
Reply With Quote
View Public Profile Visit Snot's homepage!
 
Reply     « Reply to Help Fixing Scripting Errors
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.15712 seconds with 12 queries