Advanced search  

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

Pages: [1]   Go Down

Author Topic: CSS - Use CSS hack rather ALT for album info (?)  (Read 5134 times)

0 Members and 1 Guest are viewing this topic.

Rodinou

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 346
  • Tournicoti, Tournicota
    • http://www.sortons.net
CSS - Use CSS hack rather ALT for album info (?)
« 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 ...

Tarique Sani

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 2712
    • http://tariquesani.net
Re: CSS - Use CSS hack rather ALT for album info (?)
« Reply #1 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]
« Last Edit: July 25, 2004, 06:29:41 am by Tarique Sani »
Logged
SANIsoft PHP applications for E Biz

Rodinou

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 346
  • Tournicoti, Tournicota
    • http://www.sortons.net
Re: CSS - Use CSS hack rather ALT for album info (?)
« Reply #2 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)
Pages: [1]   Go Up
 

Page created in 0.03 seconds with 19 queries.