Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-20-2008, 04:39 AM   PM User | #1
skypaige
New to the CF scene

 
Join Date: Aug 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
skypaige is an unknown quantity at this point
PopMenu where onclick image persists

Hi, I have a PopMenu with countries and their flags. What I'm trying to do is to get the selected country/flag image to persist after the user has clicked on it. The choices link to static pages with that country's corresponding content. At this time, the US is the default name and flag image, but I don't know how to make it into a variable with the other options that will persist after being selected. (I'm still learning JavaScript and its not my strength.) If someone could assist me, I would be very appreciative.

Thank you in advance.

Here is a snippet of the code:

PopMenu1_1=new Array(
"<img src="+BaseHref+"\"images/usa_flag.gif\">", // ElementText
"#", // ElementLink
"", // ElementBgImage
11, // ElementNoOfSubElements
25, // ElementHeight
165, // ElementWidth
"", // ElementBgColor
"", // ElementBgHighColor
"", // ElementFontColor
"", // ElementFontHighColor
"", // ElementBorderColor
"", // ElementFontFamily
-1, // ElementFontSize in pixel
-1, // ElementBold
-1, // ElementItalic
"left", // ElementTextAlign
""); // ElementStatusText

PopMenu1_1_1=new Array("rollover?"+BaseHref+"images/canada_flag.gif?"+BaseHref+"images/canada_flag1.gif",href="default.html","",0,25,167,"","","","","","",-1,-1,-1,"","");
PopMenu1_1_2=new Array("rollover?"+BaseHref+"images/mexico_flag.gif?"+BaseHref+"images/mexico_flag1.gif",href="la.html","",0,25,167,"","","","","","",-1,-1,-1,"","");
PopMenu1_1_3=new Array("rollover?"+BaseHref+"images/uk_flag.gif?"+BaseHref+"images/uk_flag1.gif",href="eu.html","",0,25,167,"","","","","","",-1,-1,-1,"","");
PopMenu1_1_4=new Array("rollover?"+BaseHref+"images/nederland_flag.gif?"+BaseHref+"images/nederland_flag1.gif",href="eu.html","",0,25,167,"","","","","","",-1,-1,-1,"","");
PopMenu1_1_5=new Array("rollover?"+BaseHref+"images/germany_flag.gif?"+BaseHref+"images/germany_flag1.gif",href="eu.html","",0,25,167,"","","","","","",-1,-1,-1,"","");
PopMenu1_1_6=new Array("rollover?"+BaseHref+"images/brazil_flag.gif?"+BaseHref+"images/brazil_flag1.gif",href="la.html","",0,25,167,"","","","","","",-1,-1,-1,"","");
PopMenu1_1_7=new
skypaige is offline   Reply With Quote
Reply

Bookmarks

Tags
onclick, persists, popmenu

Jump To Top of Thread


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

Forum Jump


All times are GMT +1. The time now is 10:28 AM.


Advertisement
Log in to turn off these ads.