Efect autocolant in coltul din dreapta al forumului
Acest tutorial are ca scop adăugarea unui efect autocolant în partea dreaptă sus a forumului dvs. Tutorialul este disponibil pentru toate versiunile de forum, codurile putând fi ataşate indiferent de tema folosită. Pentru o mica previzualizare: CLICK AICI
Prima parte: crearea fișierului javascript. 1. Creați un Document Text Nou ( New Document Text ) , în computerul dvs., preferabil pe Desktop.
2. În interiorul acestuia, veți adăuga: Cod:var esel = new Object(); esel.ad_url = escape('LINK REDIRECTIONARE'); // add your domain esel.small_path = 'http://forumgratuit.webs.com/autocolant/esel_s.swf'; // --------- change to url to file esel.small_image = escape('IMAGINE IMCA'); // --------- change to url to file esel.big_path = 'http://forumgratuit.webs.com/autocolant/esel_b.swf'; // --------- change to url to file esel.big_image = escape('IMAGINE MARE'); // --------- change to url to file // Nu modifica nimic de sub linie ------------------------------------------------------------------------------------------------------------------------------------------------------------ esel.small_width = '100'; esel.small_height = '100'; esel.small_params = 'ico=' + esel.small_image; esel.big_width = '650'; esel.big_height = '650'; esel.big_params = 'big=' + esel.big_image + '&ad_url=' + esel.ad_url; function sizeup987(){ document.getElementById('eselcornerBig').style.top = '0px'; document.getElementById('eselcornerSmall').style.top = '-1000px'; } function sizedown987(){ document.getElementById("eselcornerSmall").style.top = "0px"; document.getElementById("eselcornerBig").style.top = "-1000px"; } esel.putObjects = function () { document.write(' id="eselcornerSmall" style="position:absolute;width:'+ esel.small_width +'px;height:'+ esel.small_height +'px;z-index:9999;right:0px;top:0px;">'); document.write('document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"'); document.write(' id="eselcornerSmallObject" width="'+esel.small_width+'" height="'+esel.small_height+'">'); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' src="'+ esel.small_path + '?' + esel.small_params +'" name="eselcornerSmallObject" wmode="transparent" quality="high" width="'+ esel.small_width +'" height="'+ esel.small_height +'" flashvars="'+ esel.small_params +'" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">'); document.write('