help me valid this code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mazinger
    Senior Member
    • Jul 2005
    • 2399
    • 3.7.x

    help me valid this code

    I'm using a plugin that uses this code

    PHP Code:
        $ehdaa_move "<marquee style='border: " $vbulletin->options['ehdaa_bord'] . "px solid " $vbulletin->options['ehdaa_bord_color'] . "' onmouseover=this.stop() onmouseout=this.start() scrollAmount=" $vbulletin->options['ehdaa_speed'] . " scrollDelay=60 direction=up width=100% height=" $vbulletin->options['ehdaa_height'] . ">" $ehdaa_bit "</marquee>"
    There's something wrong with this code with cause invalid xhtml XHTML 1.0 Transitional.


    Any help will be appreciated.
    $post[signature]
  • Yves R.
    vBulletin QA
    • Nov 2003
    • 3853
    • 5.6.X

    #2
    The <marquee> tag isn't valid and is deprecated, HTML 4.0 or XHTML 1.x.

    There is no real solution, only Javascript (it exists some Javascript codes for that).
    Last edited by Yves R.; Thu 23 Aug '07, 5:23am.

    vBulletin QA - vBulletin Support French - Lead Project Tools developer

    Next release? Soon(tm)

    Comment

    • Mazinger
      Senior Member
      • Jul 2005
      • 2399
      • 3.7.x

      #3
      The validator checker said that the problem in these red quotes (style='border: " . $vbulletin)... Can I replace these with these (")?
      $post[signature]

      Comment

      • Yves R.
        vBulletin QA
        • Nov 2003
        • 3853
        • 5.6.X

        #4
        PHP Code:
        $ehdaa_move "<marquee style=\"border: " $vbulletin->options['ehdaa_bord'] . "px solid " $vbulletin->options['ehdaa_bord_color'] . "\" onmouseover=\"this.stop()\" onmouseout=\"this.start()\" scrollAmount=\"" $vbulletin->options['ehdaa_speed'] . "\" scrollDelay=\"60\" direction=\"up\" width=\"100%\" height=\"" $vbulletin->options['ehdaa_height'] . "\">" $ehdaa_bit "</marquee>"
        Try with this but you can have an error with the tag itself.

        vBulletin QA - vBulletin Support French - Lead Project Tools developer

        Next release? Soon(tm)

        Comment

        • Mazinger
          Senior Member
          • Jul 2005
          • 2399
          • 3.7.x

          #5
          Thanks. That's what I was looking for -> \".
          $post[signature]

          Comment

          widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
          Working...
          😀
          😂
          🥰
          😘
          🤢
          😎
          😞
          😡
          👍
          👎