Custom Link Effects in Coppermine? Custom Link Effects in Coppermine?
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Custom Link Effects in Coppermine?

Started by majay, January 29, 2005, 10:25:12 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

majay

Hi, I've searched the forum for an answer to my question but couldn't find anything. I would like to know whether you could apply effects to CPG links, ie put a fade effect on them. I know how to do it with HTML with a CSS file, so I tried to change the CSS of my theme, but it wouldn't work.
I work with a fadetxt.htc file that I upload with the style sheet.
If anyone can help me...
Thank you!

Joachim Müller

I'm not sure what a htc file is - maybe you could post a link both to your coppermine page and to a sample page with the fade effect applied.
Usually, fade-effects require the use of DHTML/JavaScript, so it won't be enugh to just edit the style sheet - you probably will have to get the JavaScript code to be on every page (best place to add it is script.js), and maybe you will need a trigger (e.g. additional <div>wraps and/or some trigger (e.g. an id inside the tag). This can not be answered generally, but by case - like I said: post links.

Joachim

majay

Here is a sample: http://www.mjjshots.com/temp/temp.htm

In my style sheet I create a "generallink" class:

.generalLink{
behavior: url(fadetxt.htc);
}


Then I add ' class="generallink" ' to every link (which is the main problem with applying this effect in Coppermine).

This is the HTML code for the sample link

<a class="generallink" href="http://coppermine.sourceforge.net" target="_blank"><font size="7">LINK</font></a>

Joachim Müller

so, what's the question then? Try adding the htc stuff to style.css (for "a"). Your htc file is in fact some JavaScript, I think this could be accomplished in another way as well.

Joachim

P.S. your demo page does not work in Firefox, only in IE.

majay

Quote from: GauGau on January 31, 2005, 12:03:09 AM
so, what's the question then? Try adding the htc stuff to style.css (for "a"). Your htc file is in fact some JavaScript, I think this could be accomplished in another way as well.

Joachim

P.S. your demo page does not work in Firefox, only in IE.

I've tried that aswell, but it really doesn't work. Not like it matters that much, it was just to see what it would look like. Thank you for your help anyways.