Schimbare background daca duc cliku pe el
Last Updated: Dec 08 2010 17:07, Started by
lordofthewerpons
, Nov 28 2010 17:03
·
0
#1
Posted 28 November 2010 - 17:03
Sal am un script care se schmba 2 imagini intre ele il gasiti aici http://bavotasan.com...er-fade-effect/ scriptul merge foarte bine dar nu pot sal fac sa apara pe background.
Quote <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR...nsitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>jQuery Hover Effect</title> <script type='text/javascript' src='jquery.js'></script> <script type='text/javascript'> $(document).ready(function(){ $("img.a").hover( function() { $(this).stop().animate({"opacity": "0"}, "slow"); }, function() { $(this).stop().animate({"opacity": "1"}, "slow"); }); }); </script> <style> div.fadehover { position: relative; } img.a { position: absolute; left: 0; top: 0; z-index: 10; } img.b { position: absolute; left: 0; top: 0; } </style> </head> <body> <div class="fadehover"> <img src="cbavota-bw.jpg" alt="" class="a" /> <img src="cbavota.jpg" alt="" class="b" /> </div> </body> </html> |
#2
Posted 08 December 2010 - 17:07
ai putea face un script in php care sa genereze un css pentru fiecare poza in parte, modifici doar sectiunea body-background image
Edited by ing3rashu, 08 December 2010 - 17:08. |
Anunturi
Bun venit pe Forumul Softpedia!
▶ 0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users