Web aplikacije, web servisi i software Frameworks, web servisi, programi, plugin-ovi, ekstenzije korisni za razvoj web sajtova. Sponzor: |
|
Alati teme | Način prikaza |
07. 03. 2010. | #6 |
Mladen Milentijevic
Professional
Datum učlanjenja: 20.06.2007
Lokacija: Sweden
Poruke: 224
Hvala: 43
21 "Hvala" u 21 poruka
|
@jablan odustao sam od php
@nixa necu ni jquery da radim @ivanhoe procitao sam ovo sa linka i dosao do resenja Kôd:
<style type="text/css"> <!-- .color { border:1px solid #EBEBEB; color:#999999; padding:6px; width:auto; } a:hover, #logo h1 a, .nav li.current_page_item a, .nav .current-cat a, .nav ul.sf-js-enabled li ul li a:hover, .nav ul.sf-js-enabled li ul li.sfHover a, .nav ul.sf-js-enabled li ul li.sfHover ul li a:hover, .post h2.posttitle a:hover, .post h3.posttitle a:hover, .widget h3 a { color:#bf0005; } #logo, .ribbon, #numbers a, .ribbon a, .meta span.auth, .gallery .ribbon a, .gallery .smallribbon a { background-color: #bf0005; } --> </style> <input class="color" name="bgColor" onchange="changeIt(this.color.toString())" value="ffffff" /> <script src="<?php bloginfo('template_url'); ?>/library/admin/jscolor/jscolor.js" type="text/javascript"></script> <script type="text/javascript"><!-- /*<![CDATA[*/ function changeIt(color) { if (!document.styleSheets) return; var theRules = new Array(); if (document.styleSheets[1].cssRules) theRules = document.styleSheets[1].cssRules else if (document.styleSheets[1].rules) theRules = document.styleSheets[1].rules else return; theRules[theRules.length-1].style.backgroundColor = '#'+color; theRules[theRules.length-2].style.color = '#'+color; } /*]]>*/ --> </script> Kôd:
function changeIt(color) { var mysheet=document.styleSheets[0] var totalrules=mysheet.cssRules? mysheet.cssRules.length : mysheet.rules.length if (mysheet.deleteRule){ //if Firefox mysheet.deleteRule(totalrules-1) mysheet.insertRule("#logo, .ribbon, #numbers a, .ribbon a, .meta span.auth, .gallery .ribbon a, .gallery .smallribbon a {background-color: lime;}", totalrules-1) } else if (mysheet.removeRule){ //else if IE mysheet.removeRule(totalrules-1) mysheet.addRule("#logo, .ribbon, #numbers a, .ribbon a, .meta span.auth, .gallery .ribbon a, .gallery .smallribbon a", "background-color: lime") } } |
|
|
Slične teme | ||||
Tema | Početna poruka teme | Forum | Odgovori | Poslednja poruka |
"view - page style - no style" u IE? | [nq] | Opušteno | 15 | 08. 02. 2007. 00:31 |
On screen colour picker za Win | bojan_bozovic | Web aplikacije, web servisi i software | 7 | 12. 02. 2006. 16:41 |
<div style='float:left;"> | Srecko Micic | Obaveštenja, predlozi i pitanja | 7 | 11. 12. 2005. 15:00 |
Xtra lite AJAX color picker | WinterMute | (X)HTML, JavaScript, DHTML, XML, CSS | 8 | 04. 07. 2005. 09:15 |
list-style-image i IE | hana | (X)HTML, JavaScript, DHTML, XML, CSS | 4 | 22. 06. 2005. 15:00 |