2008-01-01 10:32:04

CHRiSTiaN
» n00b
FTalk Level: zero
14
0
1969-12-31

Re: here the code for put an animated image on your main photo.. :thumbsup: :thumbsup: [quote]div.imgblock200 { background:url([b]YOUR GIF IMAGE URL[/b]); background-position: center center; background

[quote=andHa]i heard that the code is not working any more due to the update. try the js code if u want by [b]feruzz[/b] [quote]if (!attachOnLoadHandler(function() { primaryImg();})) window.onload = function() { primaryImg();}; function primaryImg() { PRIMARYIMAGE.init(); } if (typeof PRIMARYIMAGE == "undefined") { PRIMARYIMAGE = {}; } PRIMARYIMAGE = { HTML: [], sibling: [], init: function() { this.HTML = document.createElement("DIV"); this.HTML.innerHTML = "<img src='[b]YOUR IMAGE URL[/b]' />"; this.sibling = this.getModuleByClassName(/imgblock200/i)[0]; this.sibling.parentNode.replaceChild(this.HTML,this.sibling); }, getModuleByClassName: function(sClass) { var elm = []; var els = document.getElementsByTagName("*") || document.all; for (var j=0,k=els.length;j<k;j++) { if (new RegExp(sClass).test(els[j].className))elm.push(els[j]); } return elm; } };[/quote] suggestion for max width = 200px[/quote] thanks :D i thought nobody will post this updated code.

Board footer

© 2024 F Talk

Current time is 18:51

[ 12 queries - 0.049 second ]
Privacy Policy