osCmax v2.5 User Manual
Results 1 to 2 of 2

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" ...

      
  1. #1
    New Member
    Join Date
    Jul 2004
    Posts
    5
    Rep Power
    0


    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.

  2. #2
    New Member
    Join Date
    Jul 2004
    Posts
    5
    Rep Power
    0


    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...

Similar Threads

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •