forum.coppermine-gallery.net

No Support => Feature requests => Topic started by: Rodinou on July 25, 2004, 01:25:25 am

Title: CSS - Use CSS hack rather ALT for album info (?)
Post by: Rodinou on July 25, 2004, 01:25:25 am
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>

Code: [Select]
<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 ...

Title: Re: CSS - Use CSS hack rather ALT for album info (?)
Post by: Tarique Sani on July 25, 2004, 05:57:08 am
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]
Title: Re: CSS - Use CSS hack rather ALT for album info (?)
Post by: Rodinou on July 30, 2004, 02:39:21 am
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)