Author Topic: Image Alt to Title filter  (Read 2215 times)

Jor

  • Moderator
  • Sr. Member
  • *****
  • Posts: 421
    • ICQ Messenger - 10401286
    • AOL Instant Messenger - jor otf
    • Yahoo Instant Messenger - jor_otf
    • View Profile
    • http://members.outpost10f.com/~jor/
    • Email
Image Alt to Title filter
« on: November 14, 2001, 06:30:21 PM »
Unfortunately the new Opera6 still doesn't do the IE- and NS-like popup boxes for the alt attribute... but will display it for title. This filter will copy the alt attribute to a title attribute, unless a title exists.
[Patterns]
Name = "Alt to Title"
Active = TRUE
Multi = TRUE
URL = "$TYPE(htm)"
Bounds = "<i(m(g|age)|nput)s*>"
Limit = 256
Match = "1 alt=$AVQ(*2) 3 & (^*title=)"
Replace = "1 alt=2 title=2 3"


[Edit: URL = "$TYPE(htm)" added]

Edited by - Jor on 18 Jun 2002  15:51:13