osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Cannot get the following Java Script to work for me.

This is a discussion on Cannot get the following Java Script to work for me. within the osCMax v1.7 Discussion forums, part of the osCMax v1.7 Forums category; Code: <!-- PICTURE TABLE 1 --> <TABLE cellpadding="0" cellspacing="0" border="0"><tr> <td valign="center" align="center" onmouseover="this.className='rolloveron'" onmouseout="this.className='rollover'" class="rollover"> <a href="javascript:popUp('gallery/Fgallery2-1.jpg')"><img src="gallery/gallery2-1.jpg" border="0" ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 07-09-2004, 03:16 PM
New Member
 
Join Date: Jul 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
sc2saturn
Default Cannot get the following Java Script to work for me.

Code:
<!-- PICTURE TABLE 1 --> 

<TABLE cellpadding="0" cellspacing="0" border="0"><tr> 

<td valign="center" align="center" onmouseover="this.className='rolloveron'" onmouseout="this.className='rollover'"  class="rollover"> 

<a href="javascript:popUp('gallery/Fgallery2-1.jpg')"><img src="gallery/gallery2-1.jpg" border="0" hspace="1" vspace="1" width="130" height="90"></a><br> 

</td></tr></table> 

<!-- PICTURE TABLE 1 -->
When I insert the following javascript, I get an error that it cannot parse past the first ' in the "this.className='rolloveron'" function.

If anyone has any suggestions I would appreciate it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 07-09-2004, 03:34 PM
New Member
 
Join Date: Jul 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
sc2saturn
Default

Actually this might help to troubleshoot this a little better...

The error I am getting is
Code:
Parse error: parse error, unexpected T_STRING in /home/habitga/public_html/includes/languages/english/testpage3.php on line 112
The Javascript file I am using is for a picture gallery and the file is attached here.

The code used to call the java file and create the gallery is as follows...
Code:
<script language="JavaScript" src="gallery_nav.js"></script>
Code:
<!-- PICTURE TABLE 1 -->

<TABLE cellpadding="0" cellspacing="0" border="0"><tr>

<td valign="center" align="center" onmouseover="this.className='rolloveron'" onmouseout="this.className='rollover'"  class="rollover">

<a href="javascript:popUp('gallery/Fgallery2-1.jpg')"><img src="gallery/gallery2-1.jpg" border="0" hspace="1" vspace="1" width="130" height="90"></a><br>

</td></tr></table>

<!-- PICTURE TABLE 1 -->
It currently works like a charm on a static page. The idea is a simple thumbnail image that when clicked opens a large version in a pop up window. The problem it seems is the parsing is getting hung up on the first ' in the "this.className='rolloveron'" statement.

The javascript file is below...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
click to enlarge java error garjowan osCMax v2 Installation issues 4 10-04-2006 01:18 PM
dhtml menu gone because of java errors cadalist osCommerce 2.2 Discussion 0 09-05-2006 07:45 PM
Insert Script moreduff osCMax v1.7 Discussion 1 02-25-2006 08:41 PM
max 1.5 script movement wildtypitch osCMax v1.7 Discussion 3 11-13-2004 12:31 PM
need help on installation script Anonymous osCommerce 2.2 Installation Help 1 11-27-2002 08:17 PM


All times are GMT -8. The time now is 01:18 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax