Forums / Templates, Stylesheets, Page Layout / Adding a head tag script

Adding a head tag script

Locked
Results 1 to 7 of 7
This thread is locked. New replies are disabled.
11 Oct 2006, 16:12
#1
gardengate avatar

gardengate

New Zenner

Join Date:
Jul 2006
Posts:
79
Plugin Contributions:
0

Adding a head tag script

On the product page with attribute option I am trying to get a popup window to explain how to fill these option that require putting the javascript on the <head> tag. How can I accomplish that or is their another way to get popup using php?
11 Oct 2006, 17:20
#2
kim avatar

kim

Obaa-san

Join Date:
Jun 2003
Posts:
26,564
Plugin Contributions:
0

Re: Adding a head tag script

Is this popup to be a clickable link to activate or an automatic popup? If you want a clickable link you can look at the shopping cart help link for an example to clone.
11 Oct 2006, 17:36
#3
gardengate avatar

gardengate

New Zenner

Join Date:
Jul 2006
Posts:
79
Plugin Contributions:
0

Re: Adding a head tag script

Yes it is a clickable text. What I did on the Demo side I found the head area in common/html_header.php I added the javascript just before the </head> tag
Then on the option I aded the javascript line <A HREF="javascript:deldatePopUp()">Click here for More info</a> where deldate in the head tag refer you to that page as a pop up. It worked eventhough when I edit the option what is showing is <a herf= and in the gray non editable part the rest of the command. That scared me even though it is working I did not move it to live awaiting a reply if it work or will it cause an error somewhere with php.
12 Oct 2006, 14:42
#4
gardengate avatar

gardengate

New Zenner

Join Date:
Jul 2006
Posts:
79
Plugin Contributions:
0

Re: Adding a head tag script

Were can I find the shopping cart help link?
12 Oct 2006, 19:00
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: Adding a head tag script

gardengate:

Were can I find the shopping cart help link?


Put something in your cart and go to the shopping cart page.
At the top you'll see a small text-link to [help?]
That link opens a popup
12 Oct 2006, 19:50
#6
gardengate avatar

gardengate

New Zenner

Join Date:
Jul 2006
Posts:
79
Plugin Contributions:
0

Re: Adding a head tag script

Yes that exactly what i am looking for how do I clone it? Sorry I am a real newbie.
13 Oct 2006, 00:46
#7
gardengate avatar

gardengate

New Zenner

Join Date:
Jul 2006
Posts:
79
Plugin Contributions:
0

Re: Adding a head tag script

I created a pop-up file.php similar to info_shopping_cart.php and define it in filenames.php How do i call it using javascript?