Hi all
Small question, butI dont know if what I want will work.
I am building a website - with merchandise, now I want the option of clicking on a link to see a close up of the item in question. I dont want to spend ages coding millions of pages for a pop ups.
So what I did was stored the items in a mySQL database, each with unique item nos.
The link to the pop up window is through a javascript
eg:
<A HREF=\\"javascript:openWin1()\\" class=\\"toplinks\\">Click here for close-up</A>
now how do I pass the variable that identifes an item (the item number) through the javascript and into the new pop up window.
The javscript code for the pop up I am using is as follows
function openWin1() {
myWin=open(\"/walls_new/shop/item.php\",\"displayWindow\",
\"width=330,height=280,status=yes,toolbar=yes,menubar=yes\");
}
while the code for the template pop window is just this
<?
echo \"<img src=\\"$id\";
echo \"_detail.jpg\\">\";
?>
does anyone have any ideas or knows what I am talking about?