Results 1 to 2 of 2

Thread: Invalid code

  1. #1
    Join Date
    Feb 2008
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Invalid code

    1) Script Title: AnyLink CSS Menu v2.2

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...anylinkcss.htm

    3) Describe problem: when using images as anchor links, the instructions say to use the below code
    HTML Code:
    <a href="http://www.dynamicdrive.com" class="menuanchorclass" rel="anylinkmenu4" data-image="news.gif" data-overimage="newsover.gif"><img src="news.gif" style="border-width:0" /></a>
    This is not valid code, as data-overimage and data-image are not valid attributes. Any way to make this valid code?

    Thanks

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    To do that and still use the script for the rollover would require either a custom DTD, or fairly extensive modification to the script to use a valid attribute. Frankly I'm a bit surprised that DD would use an invalid attribute for this. In the past he always piggybacked such information onto either the rel or rev attributes. An alternative would be to ignore this feature of the script and place code for a valid rollover on the image tag itself. Here's one:

    http://www.dynamicdrive.com/dynamicindex15/domroll.htm
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •