CSS - Use CSS hack rather ALT for album info (?) CSS - Use CSS hack rather ALT for album info (?)
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

CSS - Use CSS hack rather ALT for album info (?)

Started by Rodinou, July 25, 2004, 01:25:25 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Rodinou

The Alt attribute is one of the lack of CPG, especially under Mozilla and FireFox

look at http://www.sortons.net/xHTML/css_popup.htm

Look ... it would be cool to integrate this inside the xhtml templates ...

<html>
<head>
<title>N O  O V E R L I B for Coppermine : C S S is the Solution</title>


<style>

a#popup {
color:#FF6600;
text-decoration:none;
position:relative;
left:0px;
}

a#popup span {
display:none;
}

a#popup:hover {
color:#000; cursor:default;
}

a#popup:hover #popinfo {
display: block;
z-index: 100;
position: absolute;
top: 25px;
left: 5px;
width: 170px;
height: auto;
background-color: #CECFCE;
color: #000;
border: 1px solid #999;
text-align: left;
font-family: Trebuchet Ms, Verdana, Arial, Helvetica, Sans-Serif;
font-size: 10px;
padding: 10px
}

</style>

</head>

<body>

<a href="#" id="popup"> Put your mouse here !!! It's text ! <span id="popinfo">A DHTML effect ? No only CSS !!! We can put all ... links, html, or ... in Coppermine Case, Description (album, category ...)</span></a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#" id="popup"> Popup Follows the link ! <span id="popinfo">A DHTML effect ? No only CSS !!! We can put all ... links, html, or ... in Coppermine Case, Description (album, category ...)</span></a><br><br><br><br><br><br><br><br>

<a href="#" id="popup"><img src=gfx/ets/87.jpg border=0> <span id="popinfo">Ohhhhh It's cool !!! We can put some text, description here too !!! Unlimited popup on a page ... simply is to add the popup ID on each element which has a description !</span></a><br><br>

</body>

</html>


As you can see, <span id="popinfo"> replaces alt info ... customizable, easy to use, possibility to use colors, weight ...


Tarique Sani

#1
I will look into if this is possible by changing just the theme files - if yes then my XHTML themes will have it if no then the ALT stays

[update]
This will need changes in core files of CPG - at least for now ALT stays
[/update]
SANIsoft PHP applications for E Biz

Rodinou

Please try ...

http://www.sortons.net/xHTML2-alpha/bars.htm (onmouseover ONLY on "fiche descriptive")

I dream about a version of coppermine to see the photos like ... that

http://www.sortons.net/xHTML2-alpha/review-concerts.htm

One page, several pics ... and possibility to link however a pic if a user want to show a pic directly ...

Promise, I'm working on it (but in fact, I work on an ADDON to use pics from datase everywhere we
want)