Results 1 to 2 of 2

Thread: script help

  1. #1
    Registered
    Join Date
    Nov 2003
    Posts
    11

    script help

    Hi there

    The last 2 lines in this script i need to be able to loacat an image

    function addMenuItem(label, action, image, mouseover) {
    this.items[this.items.length] = label;
    this.actions[this.actions.length] = action;
    this.image[this.src] = image;
    this.mouseover[this.onmouseover] = mouseover;
    }

    this.image i need to be able to loacate an image that will load automaticly and this.mouseover i need the image to change on mouseover.

    this is the last thing i need on my nav bar and have been working for ages on it and just cant seam to figure it out.

    any help will be great

    thanks

  2. #2
    Registered
    Join Date
    Nov 2003
    Posts
    67
    if you are trying to dynamically replace an image, here is how to do it....

    <script language="JavaScript">
    window.document.images[555].src = "http://www.mysite.com/images/yo.gif";
    </script>

    you need to replace 555 with the number the image in question appears in the html code.

Similar Threads

  1. User comments script
    By Westech in forum General Management Issues
    Replies: 18
    Last Post: 01-17-2005, 05:44 AM
  2. Looking for affiliates.. (to sell a PHP script)
    By listenmirndt in forum The Marketplace
    Replies: 4
    Last Post: 04-12-2004, 02:58 AM
  3. AWS PHP script problems
    By tempyyyst in forum Advertising & Affiliate Programs
    Replies: 8
    Last Post: 04-04-2004, 07:12 AM
  4. Anybody found a shopping cart script to use with AWS?
    By RockNRollPig in forum Advertising & Affiliate Programs
    Replies: 7
    Last Post: 02-18-2004, 06:44 PM
  5. Redirect script with statistics, graphs, etc
    By emke in forum Website Programming & Databases
    Replies: 7
    Last Post: 05-20-2003, 03:44 AM

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
  •