Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting a cookie value

Status
Not open for further replies.

hd65

Technical User
Aug 17, 2000
27
US
Here's what I have..
An image(1001.jpg)displayed in a frame.
And a button to set a cookie.

Here's what I'm trying to do...
When the button is clicked I want the cookie name set to whatever(the name I can change later if I need to) and here is the hard part I need the value set to the image name(1001.jpg). This is easy enough if I set the value within the script but I can't do to the number of possible images.(200++)
I can use something like this to get colse but it's not realy there.
setCookie("1001", parent.imageside.location.href);

Any ideas at all would be great
thanks
paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top