JavaScript -Convert Hard-Coded To Variables

Completed Posted Jan 24, 2009 Paid on delivery
Completed Paid on delivery

I have an HTML page with? simple JS that displays and hides a div.? This works fine for one div to be manipulated. (See attached demo.)

However, I want to be able to manipulate multiple divs.? And, Affiliates will paste in this same code one or more times (one time for each language, and might even duplicate some of the ? languages, for all I know).?

My concern is that the Affiliate may put more than one banner on the page. This could cause a naming conflict with the divs, and also with the function names.? I want this cross-browser (which I think it already is) and bullet-proof, so I don't get angry calls from the Affiliates that I cannot, in my ignorance, troubleshoot.

I will be generating the code for the Affiliate, so I could use unique ID's for the div corresponding to the language he chose, and even unique function names for each time the Affiliate pastes in the code again. Each past-in should stand alone, and not conflict with earlier and later paste-ins of the code for other divs.

My goal is to have a cross-browser (for the browsers supported), bullet-proof implementation (which does required JS, of course, with a notification to users if they have disabled JS that they need it on).

Engineering JavaScript MySQL PHP Project Management Software Architecture Software Testing Web Hosting Website Management Website Testing

Project ID: #3573096

About the project

3 proposals Remote project Active Jan 24, 2009

Awarded to:

silver82

See private message.

$9 USD in 3 days
(159 Reviews)
6.2

3 freelancers are bidding on average $37 for this job

namithj

See private message.

$17 USD in 3 days
(322 Reviews)
6.8
kirillarbuzov

See private message.

$85 USD in 3 days
(0 Reviews)
2.5