Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » [archived] anc_rollover

#1 2005-01-31 05:08:00

usonian
Archived Plugin Author
From: Dunwich, MA
Registered: 2004-02-24
Posts: 7
Website

[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.

anc_rollover_0.1.txt

Examples:

Assume you have two images in your Textpattern site:

  1. ‘Button Off’, whose ID is 27
  2. ‘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

#2 2005-01-31 08:48:08

Etz Haim
Archived Plugin Author
From: Karlstad, Sweden
Registered: 2005-01-24
Posts: 262
Website

Re: [archived] anc_rollover

Does it preload images?

Offline

#3 2005-01-31 11:59:53

usonian
Archived Plugin Author
From: Dunwich, MA
Registered: 2004-02-24
Posts: 7
Website

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

#4 2005-01-31 12:27:21

Etz Haim
Archived Plugin Author
From: Karlstad, Sweden
Registered: 2005-01-24
Posts: 262
Website

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.

Offline

#5 2005-02-01 02:09:21

soulship
Member
From: Always Sunny Charleston
Registered: 2004-04-30
Posts: 669
Website

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

#6 2006-03-07 01:31:26

soulship
Member
From: Always Sunny Charleston
Registered: 2004-04-30
Posts: 669
Website

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

#7 2008-03-18 17:38:56

garbo
Member
From: Montreal, Canada
Registered: 2007-01-02
Posts: 28
Website

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

  1. Index
  2. » Archives
  3. » [archived] anc_rollover

Board footer

Powered by FluxBB