Javascript swap image program

Discussion in 'JavaScript' started by Weirfire, Mar 4, 2006.

  1. #1
    I was using this javascript swap image program;

    http://www.alistapart.com/articles/imagegallery

    and managed to get a test page working with all the variables I want to display when I click on an image.

    When I went to paste it into the main site which uses the format

    $contents .= "{display HTML code}";
    include "template.php"; (Where the template prints the $contents)


    It stopped catching the links and went straight to the link containing the image.

    The thing I dont get is that when I go to view page source of both files it's the exact same code that is being outputted. Could it be because I'm using javascript from within PHP? :confused:
     
    Weirfire, Mar 4, 2006 IP
  2. Weirfire

    Weirfire Language Translation Company

    Messages:
    6,979
    Likes Received:
    365
    Best Answers:
    0
    Trophy Points:
    280
    #2
    okay, i've fixed that problem now.

    The next problem is how to get a live link to display on the fly using this system. :)
     
    Weirfire, Mar 4, 2006 IP