Results 1 to 4 of 4

Thread: Image expandoing help

  1. #1
    Join Date
    May 2009
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Image expandoing help

    Hello everyone... i have a little problem on my IMAGE EXPANDOING SCRIPT - I INTERGRATED WITH THE IMAGE CRAWLING SCRIPT AND THE CRAWLING IS WORKING FINE.. EXCEPTS THE EXPANDOING IS NOT WORKING.. I tried everything but still can't make it work.. can anyone please help.
    thanks

    this is the link for the image expandoing script. http://www.dynamicdrive.com/dynamici...pandoimage.htm

    this is my code ...
    PHP Code:
    <?php
    if ((!defined('NV_SYSTEM')) AND (!defined('NV_ADMIN'))) {
        
    Header("Location: ../index.php");
        exit;
    }
    $content .= "<style type=\"text/css\">\n";
    $content .= "img.expando{\n";
    $content .= "border: none;\n";
    $content .= "vertical-align: top;\n";
    $content .= "}\n";
    $content .= "</style>\n";
    $content .= "<script type=\"text/javascript\" src=\"../js/expando.js\"></script>\n";
    $content .= "<script type=\"text/javascript\" src=\"../js/crawler.js\"></script>\n";
    $content  .= "<div class=\"marquee\" id=\"mycrawler2\">\n";
    $content  .= "<p><p align=\"center\"><SCRIPT language='JavaScript' img class=\"expando\" src=\"http://chuahuongdao.org/hinhanh/random.php?2\" width=\"140\" height=\"110\" /></SCRIPT>\n";
    $content  .= "&nbsp;<SCRIPT language='JavaScript'  img class=\"expando vocation\" src=\"http://chuahuongdao.org/hinhanh/random.php?2\" width=\"140\" height=\"110\" /></SCRIPT>\n";
    $content  .= "&nbsp;<SCRIPT language='JavaScript'  img class=\"expando\" src=\"http://chuahuongdao.org/hinhanh/random.php?3\" width=\"140\" height=\"110\" /></SCRIPT>\n";
    $content  .= "&nbsp;<SCRIPT language='JavaScript'  img class=\"expando vocation\" src=\"http://chuahuongdao.org/hinhanh/random.php?4\" width=\"140\" height=\"110\" /></SCRIPT>\n";
    $content  .= "&nbsp;<SCRIPT language='JavaScript'  img class=\"expando\" src=\"http://chuahuongdao.org/hinhanh/random.php?5\" width=\"140\" height=\"110\" /></SCRIPT>\n";
    $content  .= "&nbsp;<SCRIPT language='JavaScript'  img class=\"expando vocation\" src=\"http://chuahuongdao.org/hinhanh/random.php?6\" width=\"140\" height=\"110\" /></SCRIPT>\n";
    $content  .= "&nbsp;<SCRIPT language='JavaScript'  img class=\"expando\" src=\"http://chuahuongdao.org/hinhanh/random.php?7\" width=\"140\" height=\"110\" /></SCRIPT>&nbsp;\n";
    $content  .= "</div></p>\n";
    $content  .= "<script type=\"text/javascript\">\n";
    $content  .= "marqueeInit({\n";
    $content  .= "    uniqueid: 'mycrawler2',\n";
    $content  .= "    style: {\n";
    $content  .= "        'padding': '2px',\n";
    $content  .= "        'width': '600px',\n";
    $content  .= "        'height': '180px'\n";
    $content .= "    },\n";
    $content  .= "    inc: 3, //speed - pixel increment for each iteration of this marquee's movement\n";
    $content  .= "    mouse: 'cursor driven', //mouseover behavior ('pause' 'cursor driven' or false)\n";
    $content  .= "    moveatleast: 2,\n";
    $content  .= "    neutral: 150,\n";
    $content  .= "    savedirection: true\n";
    $content .= "});\n";
    $content  .= "</script>\n";
    ?>
    you can see my webpage with the images crawling from the right to left but not expandoing when mouseover... http://www.chuahuongdao.org
    Last edited by Snookerman; 05-18-2009 at 06:43 PM. Reason: added [php] tags

  2. #2
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    1,160
    Thanks
    17
    Thanked 277 Times in 275 Posts

    Default

    The tags are in mess. Let me point out this part:
    Code:
    <SCRIPT language='JavaScript' img class="expando" src="http://chuahuongdao.org/hinhanh/random.php?2" width="140" height="110" /></SCRIPT>
    &nbsp;<SCRIPT language='JavaScript'  img class="expando vocation" src="http://chuahuongdao.org/hinhanh/random.php?2" width="140" height="110" /></SCRIPT>
    &nbsp;<SCRIPT language='JavaScript'  img class="expando" src="http://chuahuongdao.org/hinhanh/random.php?3" width="140" height="110" /></SCRIPT>
    &nbsp;<SCRIPT language='JavaScript'  img class="expando vocation" src="http://chuahuongdao.org/hinhanh/random.php?4" width="140" height="110" /></SCRIPT>
    &nbsp;<SCRIPT language='JavaScript'  img class="expando" src="http://chuahuongdao.org/hinhanh/random.php?5" width="140" height="110" /></SCRIPT>
    &nbsp;<SCRIPT language='JavaScript'  img class="expando vocation" src="http://chuahuongdao.org/hinhanh/random.php?6" width="140" height="110" /></SCRIPT>
    &nbsp;<SCRIPT language='JavaScript'  img class="expando" src="http://chuahuongdao.org/hinhanh/random.php?7" width="140" height="110" /></SCRIPT>
    You might want to rectify that.
    Learn how to code at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph!

  3. #3
    Join Date
    May 2009
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    well i also done this.. but still the same problem.
    PLEASE HELP ME ON THIS...

    <?php
    if ((!defined('NV_SYSTEM')) AND (!defined('NV_ADMIN'))) {
    Header("Location: ../index.php");
    exit;
    }
    $content .= "<head>\n";
    $content .= "<style type=\"text/css\">\n";
    $content .= "img.expando{ /*sample CSS for expando images. Not required but recommended*/\n";
    $content .= "border: none;\n";
    $content .= "vertical-align: top; /*top aligns image, so mouse has less of a change of moving out of image while image is expanding*/\n";
    $content .= "}\n";
    $content .= "</style>\n";
    $content .= "</head>\n";
    $content .= "<script type=\"text/javascript\" src=\"../js/expando.js\"></script>\n";
    $content .= "<script type=\"text/javascript\" src=\"../js/crawler.js\"></script>\n";
    $content .= "<div class=\"marquee\" id=\"mycrawler2\">\n";
    $content .= "<p><p align=\"center\">\n";
    $content .= "&nbsp;&nbsp;&nbsp;&nbsp;<SCRIPT language=\"JavaScript\" class=\"expando\" src=\"http://chuahuongdao.org/hinhanh/random.php?1\" width=\"140\" height=\"110\"></SCRIPT>\n";
    $content .= "&nbsp;<SCRIPT language=\"JavaScript\" class=\"expando\" src=\"http://chuahuongdao.org/hinhanh/random.php?2\" width=\"140\" height=\"110\"></SCRIPT>\n";
    $content .= "&nbsp;<SCRIPT language=\"JavaScript\" class=\"expando\" src=\"http://chuahuongdao.org/hinhanh/random.php?3\" width=\"140\" height=\"110\"></SCRIPT>\n";
    $content .= "&nbsp;<SCRIPT language=\"JavaScript\" class=\"expando\" src=\"http://chuahuongdao.org/hinhanh/random.php?4\" width=\"140\" height=\"110\"></SCRIPT>\n";
    $content .= "&nbsp;<SCRIPT language=\"JavaScript\" class=\"expando\" src=\"http://chuahuongdao.org/hinhanh/random.php?5\" width=\"140\" height=\"110\"></SCRIPT>\n";
    $content .= "&nbsp;<SCRIPT language=\"JavaScript\" class=\"expando\" src=\"http://chuahuongdao.org/hinhanh/random.php?6\" width=\"140\" height=\"110\"></SCRIPT>\n";
    $content .= "&nbsp;<SCRIPT language=\"JavaScript\" class=\"expando\" src=\"http://chuahuongdao.org/hinhanh/random.php?7\" width=\"140\" height=\"110\"></SCRIPT>\n";
    $content .= "</div></p>\n";
    $content .= "<script type=\"text/javascript\">\n";
    $content .= "marqueeInit({\n";
    $content .= " uniqueid: 'mycrawler2',\n";
    $content .= " style: {\n";
    $content .= " 'padding': '2px',\n";
    $content .= " 'width': '600px',\n";
    $content .= " 'height': '180px'\n";
    $content .= " },\n";
    $content .= " inc: 3, //speed - pixel increment for each iteration of this marquee's movement\n";
    $content .= " mouse: 'cursor driven', //mouseover behavior ('pause' 'cursor driven' or false)\n";
    $content .= " moveatleast: 2,\n";
    $content .= " neutral: 150,\n";
    $content .= " savedirection: true\n";
    $content .= "});\n";
    $content .= "</script>\n";
    ?>
    Last edited by pannakara; 05-19-2009 at 09:32 PM.

  4. #4
    Join Date
    May 2009
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    help please !!!!

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
  •