#1 (permalink)  
Old 01-24-2006, 07:30 AM
Registered User
 
Join Date: Jan 2006
Location: Switzerland
Posts: 1
adding variables question -easy (for those in the know!)

This distant rollover works:

Code:
function top*****ange()
{
	if (document.images) 
	{
		document.topbit.src=01bit.jpg);
	}
}
but how do I change it to use a variable ?

Code:
function top*****ange(name)
{
	if (document.images) 
	{
		document.topbit.src=name+ ".jpg");
	}
}
it's the right punctuation around the name+ .jpg that's my problem....

any help would be much appreciated
Reply With Quote

Reply


Thread Tools
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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Easy Way For Writers To Update? sirtech Programming and Scripting 9 04-02-2007 09:22 PM
CSS adding a random word?!? HelpTony Programming and Scripting 5 02-14-2006 08:19 AM
vBulletin Question Dan_ Databases 1 01-09-2006 07:12 PM
HTML question Error Programming and Scripting 1 12-25-2005 08:44 AM
HTML Image question GreenKoopaKid Programming and Scripting 2 12-16-2005 07:43 PM


All times are GMT -5. The time now is 04:31 PM.

 
Bitrix
Clicky Web Analytics
CloudContacts
Maxtango


Subscribe to our feed | add to myYahoo!

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
© 1997-2007 HTMLCenter