hoboonrails Posted August 4, 2011 Report Share Posted August 4, 2011 Sveiki, Vispirms laikam jau jāatvainojas visiem ekstrēmi patriotiski noskaņotajiem, ka raksta nosaukums ir angļu val.(latviski nespēju atrast īstos vārdus; tāds nu tas laikmets mums ir, ko darīs...). Bet nu pie lietas, ideja samērā vienkārša - ir vēlme fonu (body) padarīt nedaudz dzīvīgāku; tas tiek darīts, kad kursors ir pārklājis div (šis div ietver visu web lapas saturu). Ceru, ka domu sapratāt. Ir kādam kāds padoms dodams? Quote Link to comment Share on other sites More sharing options...
waplet Posted August 4, 2011 Report Share Posted August 4, 2011 (edited) Kādu web lapas saturu? div:hover{ background:transparent; } Nesaprotu, ko tu īsti velies panākt. Edited August 4, 2011 by waplet Quote Link to comment Share on other sites More sharing options...
codez Posted August 5, 2011 Report Share Posted August 5, 2011 (edited) http://jsfiddle.net/4AW2G/2/ js: $('#d1').hover(function(){ $('body') .stop(true,true) .animate({backgroundColor:'#f80'},500) .animate({backgroundColor:'#40f'},500) .animate({backgroundColor:'#0f0'},500); },function(){ $('body') .stop(true,true) .animate({backgroundColor:'#fff'},1000); }); Edited August 5, 2011 by codez Quote Link to comment Share on other sites More sharing options...
Zefirs Posted August 5, 2011 Report Share Posted August 5, 2011 div:hover body{ background-color:black; } Quote Link to comment Share on other sites More sharing options...
marcis Posted August 5, 2011 Report Share Posted August 5, 2011 @Zefirs pirkstus nocirst :) Quote Link to comment Share on other sites More sharing options...
daGrevis Posted August 5, 2011 Report Share Posted August 5, 2011 Divā bodijs? Rādi vēl! :) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.