[pmwiki-users] Custom Markup for Rollover

Kathryn Andersen kat_lists at katspace.homelinux.org
Fri Jul 14 17:38:13 CDT 2006


On Fri, Jul 14, 2006 at 01:35:18PM +0100, Paul Johnston wrote:
> Kathryn Andersen wrote:
> >You could put the CSS in a local.css page (or make your own skin if you
> >were intending to do so anyway).
> 
> If I'm "wiki-ising" a site, then I'm creating a new skin (surely). :) 
> But again - maybe not explained clearly enough.

I didn't want to make assumptions.
 
> Maybe I could create some custom CSS instead of trying to create a link?
If they absolutely insist on creating their own rollovers instead of
using CSS I think you're probably pretty much stuck.

However.... (scrunches up face in thought)

There are three ways of putting CSS into PmWiki
- in the skin
- in local.css
- $HTMLStylesFmt array variable, to which you can add styles which will
  be put in the top part of the page.  This is what you could use for
  "dynamic" CSS.

So, you could have your "rollover" markup call a PHP function, which
would then add the appropriate CSS to the $HTMLStyleFmt array, as well
as making the actual link in question.

Would your "rollover" markup have to upload the images in question also,
or are they savvy enough to be able to install them first?

Bah!  Can't you persuade them that image rollovers are a Bad Thing?
Threaten them with Disabilities legislation.  (sigh)

(sigh)
Simple replacement markup is probably easier.

Kathryn Andersen
-- 
 _--_|\     | Kathryn Andersen	<http://www.katspace.com>
/      \    | 
\_.--.*/    | GenFicCrit mailing list <http://www.katspace.com/gen_fic_crit/>
      v     | 
------------| Melbourne -> Victoria -> Australia -> Southern Hemisphere
Maranatha!  |	-> Earth -> Sol -> Milky Way Galaxy -> Universe




More information about the pmwiki-users mailing list