Changeset 170 in t29-www for shared


Ignore:
Timestamp:
Aug 8, 2010, 3:36:21 AM (14 years ago)
Author:
sven
Message:
  • Aufwaendige Copyrightbox-Loesung wieder zugunsten einer sehr einfachen Box im Bild entfernt (Prototyp, Browserkompatiblitaet ungetestet)
Location:
shared
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • shared/css/common.css

    r169 r170  
    570570\**********************************************************************/
    571571
     572#img-license-tag  {
     573        position: absolute;
     574        background-color: rgba(0,0,0, 0.5);
     575        color: white;
     576}
     577
     578#img-license-tag p {
     579        margin: 0;
     580        padding: 1em;
     581        text-align: center;
     582}
     583
     584#img-license-tag:hover {
     585        display: block;
     586        background-color: black;
     587}
     588
     589#img-license-tag a:link, #img-license-tag a:visited {
     590        color: #eee;
     591}
     592
     593#img-license-tag a:hover, #img-license-tag a:active {
     594        color: white;
     595}
     596
    572597.image-copyright-box {
    573598        position: absolute;
  • shared/js/licensing.js

    r169 r170  
    147147}
    148148
    149 $(t29_copyright_box_init);
     149//$(t29_copyright_box_init);
     150
     151
     152$(function(){
     153        $("body").append('<div id="img-license-tag"><p>&copy; technikum29. <a href="/de/impressum.shtm">Lizenzbestimmungen</a></p></div>');
     154        var tag = $("#img-license-tag");
     155        $("img").not(".no-copyright").hover(function(){
     156                tag.css({
     157                        left: $(this).offset().left,
     158                        top: $(this).offset().top + $(this).height(),
     159                        width: $(this).width(),
     160                        display: "block"
     161                });
     162                tag.css("margin-top", -tag.height()); // erst in zweitem schritt
     163        }, function(){ tag.hide(); });
     164        tag.hover(function(){ $(this).show(); }, function(){ $(this).hide(); });
     165});
Note: See TracChangeset for help on using the changeset viewer.
© 2008 - 2013 technikum29 • Sven Köppel • Some rights reserved
Powered by Trac
Expect where otherwise noted, content on this site is licensed under a Creative Commons 3.0 License