SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: help!

Hybrid View

  1. #1
    SitePoint Zealot honging's Avatar
    Join Date
    Jan 2001
    Location
    Chapel Hill, NC
    Posts
    160
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    help!

    a client website of mine (www.imagineeringtelecom.com) says that this error comes up in IE 5.0:

    ---
    Line 72
    Error: expect "/"
    ---

    but when they debug it, it comes up as OnMouseOver = "Image('1')"

    Help?!

    the code looks fine. it also works hitch-free in IE 5.5 and NS 4.X...

    help!

  2. #2
    Xbox why have you forsaken me? moospot's Avatar
    Join Date
    Feb 2001
    Location
    Clearwater, FL
    Posts
    3,615
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    which points to this function:

    [code]

    function ImageOn(iname) {
    if (bCap) {
    document[iname].src = iArray[iname][1].src;
    }
    }

    function ImageOff(iname) {
    if (bCap) {
    document[iname].src = iArray[iname][0].src;
    }
    }
    [\code]

    which then gets the value from your array here:

    Code:
    	iArray = new ImageArray(6);
    	iArray[0][0].src = "/left/home_off.gif";
    	iArray[0][1].src = "/left/home_on.gif";
    	iArray[1][0].src = "/left/about_off.gif";
    	iArray[1][1].src = "/left/about_on.gif";
    	iArray[2][0].src = "/left/services_off.gif";
    	iArray[2][1].src = "/left/services_on.gif";
    	iArray[3][0].src = "/left/intranet_off.gif";
    	iArray[3][1].src = "/left/intranet_on.gif";
    	iArray[4][0].src = "/left/emplyment_off.gif";
    	iArray[4][1].src = "/left/emplyment_on.gif";
    	iArray[5][0].src = "/left/contact_off.gif";
    	iArray[5][1].src = "/left/contact_on.gif";
    I dont know why it doesnt like the / though

  3. #3
    Xbox why have you forsaken me? moospot's Avatar
    Join Date
    Feb 2001
    Location
    Clearwater, FL
    Posts
    3,615
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You could try putting in the absolute path of the image name instead of the relative path.


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
  •