Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Java Scipt inside OSC Pages


joedunn

Recommended Posts

Posted

#1 - I am not a programmer. I know the problem has something to do with PHP, HTML, and/or JAva Script.

#2 - I am guessing that I need to close PHP before the script areas, I tried ?>, inserted the script and then placed a <?.

 

The script I am trying to install can be found here:

 

Dynamic Drive - Cool Tool Tip

 

The instructions for the script ask's a couple of things:

 

1. Put some code in the <head>

2. Put some code in the <body>

3. Call the script with a link like this:

<a href="http://www.yahoo.com" onMouseover="ddrivetip('Visit Yahoo.com')";

onMouseout="hideddrivetip()">Search Engine</a>

 

Can someone help me out here? I have tried just about ever possible combination of ?> and <? in the <head> and <body> but I keep getting an error like:

Unexpected '<' on line xx

 

One more thing, I am trying to put the code in index.php.

 

I would very much appreciate someone telling me where those two pieces of code go and how the syntax should work.

 

THANKS,

 

Joe

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...