[Openfirst-cvscommit] base/style slugs.css,NONE,1.1 slugs.js,NONE,1.1 headers.php,1.13,1.14
Brought to you by:
xtimg
From: Jamie <ast...@us...> - 2005-12-12 03:02:02
|
Update of /cvsroot/openfirst/base/style In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20503/style Modified Files: headers.php Added Files: slugs.css slugs.js Log Message: Slimier. Slug ads implemented. (Although they need some tweaking in styling.) --- NEW FILE: slugs.css --- .slug { margin: .2em; float: left; /* Set font size, etc. to normal */ } .slug > img { cursor: pointer; border: none; } .slug > span { display: none; border: thin solid silver; } /*.slug > img:active + span, .slug > img:focus + span, .slug:focus > span, .slug:active > span { display: inline; }*/ /*.slug > img:hover + span, .slug:hover > span { display: inline; }*/ /*.slug > span:selection { display: inline; } .slug > span::selection { display: inline; }*/ --- NEW FILE: slugs.js --- // Pass this the DOM event function handleSlugClick(evt) { var obj = evt.target; if (obj.parentNode.className != 'slug') return; var target = obj.nextSibling; if (target.style.display == "none") { target.style.display = "inline"; } else if (target.style.display == "inline") { target.style.display = "none"; } else { target.style.display = "inline"; } } document.documentElement.addEventListener('click', handleSlugClick, true); // TODO: Add support for non-JS browsers Index: headers.php =================================================================== RCS file: /cvsroot/openfirst/base/style/headers.php,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** headers.php 24 Nov 2005 03:28:42 -0000 1.13 --- headers.php 12 Dec 2005 03:01:53 -0000 1.14 *************** *** 51,54 **** --- 51,56 ---- <meta name="generator" content="openFIRST - http://openfirst.sf.net" /> <link rel="stylesheet" type="text/css" href="<?php echo htmlentities($StylePath); ?>/style.css" /> + <link rel="stylesheet" type="text/css" href="<?php echo htmlentities($StylePath); ?>/slugs.css" /> + <script type="application/x-javascript" src="<?php echo htmlentities($StylePath); ?>/slugs.js" /> <?php if (isset($ogMoreHeadItems) && is_array($ogMoreHeadItems)) { |