Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Topic closed
[archived] anc_rollover
Notice: This thread is archived, this plugin is no longer available.
**********************************************************
This plugin allows you to specify two Textpattern images by name or ID, which will be displayed in the browser as a JavaScript rollover.
Examples:
Assume you have two images in your Textpattern site:
- ‘Button Off’, whose ID is 27
- ‘Button On’, whose ID is 30
You can produce a rollover using either of these configurations:
<txp:anc_rollover idoff="27" idon="30"/>
<txp:anc_rollover nameoff="Button Off" nameon="Button On"/>
If you wanted the image to have a beveled, dark blue border you could also use the style
attribute:
<txp:anc_rollover idoff="27" idon="30" style="border:2px outset #000066"/>
See it in action and get a few more details at http://achase.net/files/30/rolloverplugin
I have not tested this on IE for Windows, but it’s not doing anything exotic, and it works fine on IE 5.5 for Mac… and if it works on IE Mac, it should work on damn near anything! (If there is a problem, though, do let me know.)
-Andy
Offline
Offline
Re: [archived] anc_rollover
It does not currently preload images. I was trying to keep the generated HTML as self-contained as possible, but I suppose a separate <script>
could be added before each <img/>
tag to load the ‘on’ image ahead of time.
Offline
Re: [archived] anc_rollover
Better still, why don’t you implement a <txp:anc_rollover_cache />
for the head section of the page? This would create cleaner HTML.
Also, don’t forget to enclose the script with <!-- -->
for the stone-age browsers that don’t parse the <script>
tag.
VC3 :: weblog :: my wishlist
Offline
Re: [archived] anc_rollover
This looks great! Thanks for the donation. This will certainly speed a few things up for me here and there.
Jamie
Offline
Re: [archived] anc_rollover
This plugin is great for small rollover effects, but I am trying to use this for some larger sized images on something I am working on. Does anyone have any suggestions for getting the over image cached? I tried adding a preload function and sort of blew it up so I obviously don’t know what I should do so any help or a better general direction is appreciated.
Offline
Re: [archived] anc_rollover
Hi. Great plug-in. But I’d like to know if you’re aware of a 4 pixel gap between images managed by anc-rollover. Also, there seems to be an issue with short black lines just underneath anc_rollovers in IE7.
Offline
#8 2008-04-20 17:38:55
- Castrobot
- New Member
- Registered: 2008-04-12
- Posts: 7
Re: [archived] anc_rollover
The plugin is not available anymore? :(
I would be really interested into it, since i’m struggling with image rollover in my txp code…
Offline
Pages: 1
Topic closed