1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Why this code not working?

Discussion in 'HTML & Website Design' started by tptnyc, Jun 9, 2011.

  1. #1
    Why this code not working? Just because mine is index.php page or what?
    SEMrush
    <A HREF=“pages.html” ONMOUSEOVER=‘rollover.src=“photo.jpg” ’ ONMOUSEOUT=‘rollover.src=“photo.jpg” ’><CENTER><IMG SRC=“photo.jpg” NAME=“rollover”></CENTER></A>
     
    tptnyc, Jun 9, 2011 IP
    SEMrush
  2. Johny Inside

    Johny Inside Peon

    Messages:
    84
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Write the tags' word in small letters, then try
     
    Johny Inside, Jun 9, 2011 IP
  3. tptnyc

    tptnyc Peon

    Messages:
    764
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    small letters - not working too.
    I guess something to do with pages.html; why code has pages word. Tried with index.php too still no.
     
    tptnyc, Jun 9, 2011 IP
  4. Johny Inside

    Johny Inside Peon

    Messages:
    84
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Have you put the photos in the root directory and the pages.html too?
     
    Johny Inside, Jun 9, 2011 IP
  5. webdesignbarrie

    webdesignbarrie Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    your rollover and main src images are both set to photo.jpg, so you wouldn't know if it was working. but nonetheless, the quotes should be reversed:

    <a href="pages.html" ONMOUSEOVER="rollover.src='rollover.jpg'" ONMOUSEOUT="rollover.src='mainimage.jpg'"><CENTER><IMG SRC="mainimage.jpg" NAME="rollover"></CENTER></A>

    this code above definitely works, but just make sure when you copy it that it is using the double quote rather than the opening/closing quotation characters
     
    webdesignbarrie, Jun 9, 2011 IP
  6. tptnyc

    tptnyc Peon

    Messages:
    764
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I copied and pasted with my images but instead of rollover, it starts blinking or keep flashing.

    <a href="pages.html" ONMOUSEOVER="rollover.src='rollover.JPG'" ONMOUSEOUT="rollover.src='images/style_one.JPG'"><CENTER><IMG SRC="images/style_one.JPG" NAME="rollover"></CENTER></a>
     
    tptnyc, Jun 11, 2011 IP
  7. 3dPrinting

    3dPrinting Peon

    Messages:
    894
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #7
    try to remove the '

    copy and paste:

    <a href="pages.html" ONMOUSEOVER=rollover.src="rollover.JPG" ONMOUSEOUT=rollover.src="images/style_one.JPG"><CENTER><IMG SRC="images/style_one.JPG" NAME="rollover"></CENTER></a>

    If not then send me the url and I'll check it out.
     
    3dPrinting, Jun 11, 2011 IP
  8. tptnyc

    tptnyc Peon

    Messages:
    764
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Yes, copied and pasted and images start flashing like crazy.
    http://www.kheriart.com/
    Just mouseover on the middle thumbnail image and see flashing...
     
    tptnyc, Jun 13, 2011 IP
  9. jaxrobinson

    jaxrobinson Peon

    Messages:
    19
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    The tags written should be in small tags otherwise it would always give you an error.
     
    jaxrobinson, Jun 14, 2011 IP
  10. gift4usa

    gift4usa Peon

    Messages:
    55
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    it's syntax problem write proper syntax.
     
    gift4usa, Jun 15, 2011 IP