Log in

View Full Version : Need a script that will display a certain image based on the current page URL



padstow
11-10-2008, 04:37 PM
This seems like it would be an easy thing to do, but I may be wrong-

I need a script that will change what image displays within a div (or td) based on the current page URL. For example, if the page URL is www.homepage.com&clientid=1, image 1 would appear in the div or td...if the page URL is www.homepage.com&clientid=2, image 2 would appear instead, and so on. If the URL is simply www.homepage.com, a default image would appear in the div/td.

I've been looking all over for this, it seems like it would be something already written a hundred times- I'm not a coder, but am comfortable implementing code. If anyone has seen this kind of script or uses it, I would really appreciate the help!

Thanks-

Master_script_maker
11-10-2008, 09:44 PM
do you have php on your server?

padstow
11-11-2008, 01:04 AM
The server supports asp and embedded javascript- this is for an ecommerce site being hosted on the ecommerce solution provider's servers.

Master_script_maker
11-12-2008, 03:13 AM
sorry i'm not very good with asp. maybe someone with better knowledge on the subject could help you out.