Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Aug 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Problem with jscript showtrail

    Having a problem with jscript function showtrail as implemented in jscript_imagehover.js for the Zencart shopping cart. I have attached a copy of the js file for reference.

    The function call is

    <img src="bmz_cache/0/027ee7d30684c42071bd4ba9693f2fb7.image.150x132.gif" alt="12x12 Baseball Album" title=" 12x12 Baseball Album " width="150" height="132" class="listingProductImage" style="position:relative" onmouseover="showtrail('bmz_cache/e/eced50a648f23835a9ae00b166b3522a.image.200x177.gif','12x12 Baseball Album',150,132,200,177,this,0,0,150,132);" onmouseout="hidetrail();" />

    The problem is that when I hover over the image, the web page shifts down and the called image is inserted in white space at the top of the page.

    Take a look at this page, the first image on the first row.

    I am not a programmer, so all this code is Greek to me. Any help would be greatly associated. If you need more code, I will post it here.

    Ross Fraser
    webmaster cropinstop.com
    Attached Files Attached Files

  • #2
    Banned
    Join Date
    May 2006
    Location
    England
    Posts
    664
    Thanks
    0
    Thanked 84 Times in 84 Posts
    Quote Originally Posted by fraserr View Post
    Having a problem with jscript function showtrail as implemented in jscript_imagehover.js for the Zencart shopping cart. I have attached a copy of the js file for reference.
    You have two separate <head> sections, so I think you need to validate your HTML first, as it's errors are probably confusing things.

  • #3
    New to the CF scene
    Join Date
    Aug 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Problem with jscript showtrail

    Thank you for the feedback. The double <head> has been fixed (Thanks Microsoft ), but the problem persists. As for validating the code, unfortunately most of it is generated by PHP scripts in Zencart, and fiddling with that may open another can of worms.

    Can anyone recommend a good Windows program for editing PHP that has some syntax checking? Frontpage and MS Expression insist on adding hidden bytes at the top of the file that causes the PHP execution to fail, and can only be removed with a hex editor.

  • #4
    Banned
    Join Date
    May 2006
    Location
    England
    Posts
    664
    Thanks
    0
    Thanked 84 Times in 84 Posts
    Quote Originally Posted by fraserr View Post
    Thank you for the feedback. The double <head> has been fixed (Thanks Microsoft ), but the problem persists.
    I've never seen the documentation for this code, but looking at the source I suspect that the code needs to be included in the body section, not the head.
    Try moving the related <script> tags into the body section, at some point prior to any of the involved links/images.


  •  

    Posting Permissions

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