WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Code error (12 posts)

  1. Beee
    Member
    Posted 3 years ago #

    it's not a real WordPress issue, but I use it in WordPress...

    UltraEdit colors the code so I think it has an error but I can't find it.

    <img src="<? if ( $mpid == $pid )
    {
      echo $hover; ?>" onmouseover="this.src='<? echo $hover; ?>';" onmouseout="this.src='<? echo $hover; ?>';" alt="" class="" />
    <? } else {
      echo $menu; ?>" onmouseover="this.src='<? echo $hover; ?>';" onmouseout="this.src='<? echo $menu; ?>';" alt="" class="" />
    <? } ?>
  2. elfin
    Moderator
    Posted 3 years ago #

    don't use <? use <?php

  3. Beee
    Member
    Posted 3 years ago #

    btw it's used on http://www.blend.nl/
    on http://www.blend.nl/magazine/ the 2nd row menu items hover nicely
    but on http://www.blend.nl/about/ no such thing, even while I see the 'hover' code in the source

  4. Beee
    Member
    Posted 3 years ago #

    what's the difference ?

  5. Beee
    Member
    Posted 3 years ago #

    changed it to <?php but doesn't change a bit

  6. Beee
    Member
    Posted 3 years ago #

    btw found out it's only visible in Chrome, IE, Safari and FF all works properly

  7. elfin
    Moderator
    Posted 3 years ago #

    what is supposed to show? I see no difference in Chrome/FF for either.

  8. Beee
    Member
    Posted 3 years ago #

    on http://www.blend.nl/about/ the 2 images in de 2nd row (team/editors and jobs) should get a black background with white text if you hover over them....

    I don't see that in Chrome, only in other browsers

  9. elfin
    Moderator
    Posted 3 years ago #

    I see it in Chrome.

  10. Beee
    Member
    Posted 3 years ago #

    thnx for that... I don't... (donnow why).

    can you maybe find an error in my code mentioned above ?
    since UltraEdit colors my code I assume there's an error... but can't find it.

  11. elfin
    Moderator
    Posted 3 years ago #

    can't see an error myself.

  12. Beee
    Member
    Posted 3 years ago #

    thnx for the check

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.