Ciao gente!
sapete dire dove trovare uno script che faccia suppergiù (anche fisso) quello ce fa il menu di sinistra di questo sito?
http://www.tgmonline.it (provate a scorrere su e giù la pagina...)
thx!!!
Ciao gente!
sapete dire dove trovare uno script che faccia suppergiù (anche fisso) quello ce fa il menu di sinistra di questo sito?
http://www.tgmonline.it (provate a scorrere su e giù la pagina...)
thx!!!
Guybrush Threepwood
dovrebbe essere un js, clicca qui sotto per scaricarlo
http://213.92.76.114/img/rc.js
The Blues is alright!
www.zioweb.it
se non riesci a scaricarlo eccoti il codice completo:
/*
This script (c) 2000 Ivanopulo / DAMN -- http://www.damn.to
You're free to use it, but please leave this message intact if you do it.
Thanks alot to Marek for making this script NN6 compatible
NN6 notice: It's *very* slow when it comes to timers, and it's an understatement!)
Opera notice: Opera can identify itself as any browser, depending on value chosen
in Preferences / Connections / Browser identification. This script assumes that it
identifies itself as Opera. I dare not say it's a bold assumption, but it's default
is MSIE 5. Go figure.
*/
var bNetscape4 = (navigator.appName == "Netscape" && navigator.appVersion.substring(0,1) == "4");
var bNetscape6 = (navigator.appName == "Netscape" && navigator.appVersion.substring(0,1) >= "5");
var bExplorer4plus = (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.substring(0,1) >= "4");
var bOpera5 = (navigator.appName == "Opera" && navigator.appVersion.substring(0,1) >= "5" );
var nn6DivMenu; // specially for NN6 to speed up things at least a little
var topoffset = 1;
var wheigth;
function CheckUIElements()
{
var yMenuFrom, yMenuTo, yButtonFrom, yButtonTo, yOffset, timeoutNextCheck;
if ( bNetscape4 ) {
yMenuFrom = document["divMenu"].top;
yMenuTo = top.pageYOffset + topoffset;
wheight = top.innerHeight;
}
else if ( bExplorer4plus ) {
yMenuFrom = parseInt (divMenu.style.top, 10);
yMenuTo = document.body.scrollTop + topoffset;
wheight = document.body.clientHeight;
}
else if ( bNetscape6 ) {
yMenuFrom = nn6DivMenu.style.top.replace(/px/,"");
yMenuTo = top.pageYOffset + topoffset;
wheight = top.innerHeight;
}
else if ( bOpera5 ) {
yMenuFrom = nn6DivMenu.style.top;
yMenuTo = top.pageYOffset + topoffset;
wheight = top.innerHeight;
}
timeoutNextCheck = 500;
if ( yMenuFrom != yMenuTo && wheight >= 540 ) {
if ( bNetscape6 )
yOffset = Math.ceil( Math.abs( yMenuTo - yMenuFrom ) / 10 );
else
yOffset = Math.ceil( Math.abs( yMenuTo - yMenuFrom ) / 30 );
if ( yMenuTo < yMenuFrom )
yOffset = -yOffset;
timeoutNextCheck = 10;
if ( bNetscape4 )
document["divMenu"].top += yOffset;
else if ( bExplorer4plus )
divMenu.style.top = parseInt (divMenu.style.top, 10) + yOffset;
else if ( bOpera5 )
nn6DivMenu.style.top += yOffset;
else if ( bNetscape6 ) {
nn6DivMenu.style.top = eval(nn6DivMenu.style.top.replace(/px/,"")) + yOffset;
timeoutNextCheck = 50;
}
timeoutNextCheck = 10;
}
setTimeout ("CheckUIElements()", timeoutNextCheck);
}
function ReadCookie (CookieName) {
var CookieString = document.cookie;
var CookieSet = CookieString.split (';');
var SetSize = CookieSet.length;
var CookiePieces
var ReturnValue = "";
var x = 0;
for (x = 0; ((x < SetSize) && (ReturnValue == "")); x++) {
CookiePieces = CookieSet[x].split ('=');
if (CookiePieces[0].substring (0,1) == ' ') {
CookiePieces[0] = CookiePieces[0].substring (1, CookiePieces[0].length);
}
if (CookiePieces[0] == CookieName) {
ReturnValue = CookiePieces[1];
}
}
return ReturnValue;
}
function OnLoad()
{
if (ReadCookie('nofloat')=='"1"') return true;
// we're not gonna be loaded in frames, no sir!
if ( top.frames.length )
top.location.href = self.location.href;
// setting initial UI elements positions
if ( bNetscape4 ) {
document["divMenu"].top = top.pageYOffset + topoffset;
document["divMenu"].visibility = "visible";
}
else if ( bExplorer4plus ) {
divMenu.style.top = document.body.scrollTop + topoffset;
divMenu.style.visibility = "visible";
}
else if ( bNetscape6 || bOpera5 ) {
nn6DivMenu = document.getElementById('divMenu');
nn6DivMenu.style.top = top.pageYOffset + topoffset;
nn6DivMenu.style.visibility = "visible";
}
// initializing UI update timer
CheckUIElements();
return true;
}
function PreloadImages() {
img_1=new Image; img_1.src="/img/froll1.gif";
img_2=new Image; img_2.src="/img/froll1-02.gif";
img_3=new Image; img_3.src="/img/froll1-03.gif";
img_4=new Image; img_4.src="/img/froll1-04.gif";
img_5=new Image; img_5.src="/img/froll1-05.gif";
img_6=new Image; img_6.src="/img/froll1-06.gif";
img_7=new Image; img_7.src="/img/froll1-07.gif";
img_8=new Image; img_8.src="/img/froll1-08.gif";
img_9=new Image; img_9.src="/img/froll1-09.gif";
img_10=new Image; img_10.src="/img/froll1-10.gif";
img_11=new Image; img_11.src="/img/froll1-11.gif";
img_12=new Image; img_12.src="/img/froll1-12.gif";
}
function bfmovepic(img_name,img_src) {
if ( bNetscape4 ) {
document.layers["divMenu"].document.images[img_name].src=img_src;
} else {
document[img_name].src=img_src;
}
}
function openThumb(url) {
self.name = "main";
open(url, "popup", 'toolbar=0,location=0,directories=0,status=0,menub ar=0,scrollbars=0,resizable=0,width=660,height=520 ');
}
function openLink(url) {
self.name = "main";
open(url, "Dettagli", 'toolbar=0,location=0,directories=0,status=0,menub ar=0,scrollbars=0,resizable=1,width=500,height=210 ');
}
function openNewAdv(url,w,h) {
self.name = "main";
open(url, "popup", 'toolbar=0,location=0,directories=0,status=0,menub ar=0,scrollbars=1,resizable=1,width='+w+',height=' +h);
}
function openPopup(url,w,h) {
self.name = "main";
open(url, "popup", 'toolbar=0,location=0,directories=0,status=0,menub ar=0,scrollbars=0,resizable=0,width='+w+',height=' +h);
}
function openCover(url) {
self.name = "main";
open(url, "popup", 'toolbar=0,location=0,directories=0,status=0,menub ar=0,scrollbars=1,resizable=1,width=1000,height=14 00');
}
function openCD(url) {
self.name = "main";
open(url, "popup", 'toolbar=0,location=0,directories=0,status=0,menub ar=0,scrollbars=1,resizable=1,width=700,height=500 ');
}
function openDVD(url) {
self.name = "main";
open(url, "popup", 'toolbar=0,location=0,directories=0,status=0,menub ar=0,scrollbars=1,resizable=1,width=820,height=520 ');
}
function openNew(url) { self.name="main"; open(url); }
// Javascript code that fixes a bug in some versions of Netscape Navigator
function reloadPage(init)
{ //reloads the window if Nav4 resized
if (init==true) with (navigator)
{
if ((appName=="Netscape")&&(parseInt(appVersion)==4))
{
document.pgW=innerWidth;
document.pgH=innerHeight;
onresize=reloadPage;
}
}
else if (innerWidth!=document.pgW || innerHeight!=document.pgH)
location.reload();
}
reloadPage(true);
The Blues is alright!
www.zioweb.it
altra parte di codice:
function barra_nav() {
if ( bNetscape4 ) {
doc=document.layers["divMenu"].document;
} else {
doc=document;
}
doc.write('<form action=\"/repo\" name=\"cerca\">');
doc.write('<a href=\"/\"><img alt=\"TGMOnline\" src=\"/img/logodef.gif\" width=\"180\" height=\"93\" border=\"0\"></a>
');
doc.write('<a href=\"/news\" onmouseover=\"bfmovepic(\'n00\',\'/img/froll1.gif\')\" onmouseout=\"bfmovepic(\'n00\',\'/img/fianco1-07.gif\')\"><img src=\"/img/barrasx.gif\" alt=\"\" width=\"25\" height=\"31\" border=0></a><a href=\"/news\" onmouseover=\"bfmovepic(\'n00\',\'/img/froll1.gif\')\" onmouseout=\"bfmovepic(\'n00\',\'/img/fianco1-07.gif\')\"><img src=\"/img/fianco1-06.gif\" width=\"94\" height=\"31\" border=0 alt=\"News\"></a><a href=\"/news\" onmouseover=\"bfmovepic(\'n00\',\'/img/froll1.gif\')\" onmouseout=\"bfmovepic(\'n00\',\'/img/fianco1-07.gif\')\"><img src=\"/img/fianco1-07.gif\" width=\"54\" height=\"31\" border=0 name=\"n00\" alt=\"\"></a>
');
doc.write('<a href=\"/fragzone\" onmouseover=\"bfmovepic(\'n01\',\'/img/froll1-02.gif\')\" onmouseout=\"bfmovepic(\'n01\',\'/img/fianco1-10.gif\')\"><img alt=\"\" src=\"/img/barrasx.gif\" width=\"25\" height=\"31\" border=0></a><a href=\"/fragzone\" onmouseover=\"bfmovepic(\'n01\',\'/img/froll1-02.gif\')\" onmouseout=\"bfmovepic(\'n01\',\'/img/fianco1-10.gif\')\"><img alt=\"Fragzone\" src=\"/img/fianco1-09.gif\" width=\"94\" height=\"31\" border=0></a><a href=\"/fragzone\" onmouseover=\"bfmovepic(\'n01\',\'/img/froll1-02.gif\')\" onmouseout=\"bfmovepic(\'n01\',\'/img/fianco1-10.gif\')\"><img alt=\"\" src=\"/img/fianco1-10.gif\" width=\"54\" height=\"31\" border=0 name=\"n01\"></a>
');
doc.write('<a href=\"http://www.tgmonline.it/forum/\" onmouseover=\"bfmovepic(\'n02\',\'/img/froll1-03.gif\')\" onmouseout=\"bfmovepic(\'n02\',\'/img/fianco1-13.gif\')\"><img alt=\"\" src=\"/img/barrasx.gif\" width=\"25\" height=\"31\" border=0></a><a href=\"http://www.tgmonline.it/forum/\" onmouseover=\"bfmovepic(\'n02\',\'/img/froll1-03.gif\')\" onmouseout=\"bfmovepic(\'n02\',\'/img/fianco1-13.gif\')\"><img alt=\"Forum\" src=\"/img/fianco1-12.gif\" width=\"94\" height=\"31\" border=0></a><a href=\"http://www.tgmonline.it/forum/\" onmouseover=\"bfmovepic(\'n02\',\'/img/froll1-03.gif\')\" onmouseout=\"bfmovepic(\'n02\',\'/img/fianco1-13.gif\')\"><img alt=\"\" src=\"/img/fianco1-13.gif\" width=\"54\" height=\"31\" border=0 name=\"n02\"></a>
');
doc.write('<a href=\"/download\" onmouseover=\"bfmovepic(\'n03\',\'/img/froll1-04.gif\')\" onmouseout=\"bfmovepic(\'n03\',\'/img/fianco1-16.gif\')\"><img alt=\"\" src=\"/img/barrasx.gif\" width=\"25\" height=\"31\" border=0></a><a href=\"/download\" onmouseover=\"bfmovepic(\'n03\',\'/img/froll1-04.gif\')\" onmouseout=\"bfmovepic(\'n03\',\'/img/fianco1-16.gif\')\"><img alt=\"Download\" src=\"/img/fianco1-15.gif\" width=\"94\" height=\"31\" border=0></a><a href=\"/download\" onmouseover=\"bfmovepic(\'n03\',\'/img/froll1-04.gif\')\" onmouseout=\"bfmovepic(\'n03\',\'/img/fianco1-16.gif\')\"><img alt=\"\" src=\"/img/fianco1-16.gif\" width=\"54\" height=\"31\" border=0 name=\"n03\"></a>
');
doc.write('<a href=\"/opinioni\" onmouseover=\"bfmovepic(\'n04\',\'/img/froll1-05.gif\')\" onmouseout=\"bfmovepic(\'n04\',\'/img/fianco1-19.gif\')\"><img alt=\"\" src=\"/img/barrasx.gif\" width=\"25\" height=\"31\" border=0></a><a href=\"/opinioni\" onmouseover=\"bfmovepic(\'n04\',\'/img/froll1-05.gif\')\" onmouseout=\"bfmovepic(\'n04\',\'/img/fianco1-19.gif\')\"><img alt=\"Opinioni\" src=\"/img/fianco1-18.gif\" width=\"94\" height=\"31\" border=0></a><a href=\"/opinioni\" onmouseover=\"bfmovepic(\'n04\',\'/img/froll1-05.gif\')\" onmouseout=\"bfmovepic(\'n04\',\'/img/fianco1-19.gif\')\"><img alt=\"\" src=\"/img/fianco1-19.gif\" width=\"54\" height=\"31\" border=0 name=\"n04\"></a>
');
doc.write('<a href=\"/speciali\" onmouseover=\"bfmovepic(\'n05\',\'/img/froll1-06.gif\')\" onmouseout=\"bfmovepic(\'n05\',\'/img/fianco1-22.gif\')\"><img alt=\"\" src=\"/img/barrasx.gif\" width=\"25\" height=\"31\" border=0></a><a href=\"/speciali\" onmouseover=\"bfmovepic(\'n05\',\'/img/froll1-06.gif\')\" onmouseout=\"bfmovepic(\'n05\',\'/img/fianco1-22.gif\')\"><img alt=\"Speciali\" src=\"/img/fianco1-21.gif\" width=\"94\" height=\"31\" border=0></a><a href=\"/speciali\" onmouseover=\"bfmovepic(\'n05\',\'/img/froll1-06.gif\')\" onmouseout=\"bfmovepic(\'n05\',\'/img/fianco1-22.gif\')\"><img alt=\"\" src=\"/img/fianco1-22.gif\" width=\"54\" height=\"31\" border=0 name=\"n05\"></a>
');
doc.write('<a href=\"/tgmgenesis\" onmouseover=\"bfmovepic(\'n06\',\'/img/froll1-07.gif\')\" onmouseout=\"bfmovepic(\'n06\',\'/img/fianco1-25.gif\')\"><img alt=\"\" src=\"/img/barrasx.gif\" width=\"25\" height=\"31\" border=0></a><a href=\"/tgmgenesis\" onmouseover=\"bfmovepic(\'n06\',\'/img/froll1-07.gif\')\" onmouseout=\"bfmovepic(\'n06\',\'/img/fianco1-25.gif\')\"><img alt=\"TGMGenesis\" src=\"/img/fianco1-24.gif\" width=\"94\" height=\"31\" border=0></a><a href=\"/tgmgenesis\" onmouseover=\"bfmovepic(\'n06\',\'/img/froll1-07.gif\')\" onmouseout=\"bfmovepic(\'n06\',\'/img/fianco1-25.gif\')\"><img alt=\"\" src=\"/img/fianco1-25.gif\" width=\"54\" height=\"31\" border=0 name=\"n06\"></a>
');
doc.write('<a href=\"/bovas\" onmouseover=\"bfmovepic(\'n07\',\'/img/froll1-08.gif\')\" onmouseout=\"bfmovepic(\'n07\',\'/img/fianco1-28.gif\')\"><img alt=\"\" src=\"/img/barrasx.gif\" width=\"25\" height=\"31\" border=0></a><a href=\"/bovas\" onmouseover=\"bfmovepic(\'n07\',\'/img/froll1-08.gif\')\" onmouseout=\"bfmovepic(\'n07\',\'/img/fianco1-28.gif\')\"><img alt=\"BovaByte\" src=\"/img/fianco1-27.gif\" width=\"94\" height=\"31\" border=0></a><a href=\"/bovas\" onmouseover=\"bfmovepic(\'n07\',\'/img/froll1-08.gif\')\" onmouseout=\"bfmovepic(\'n07\',\'/img/fianco1-28.gif\')\"><img alt=\"\" src=\"/img/fianco1-28.gif\" width=\"54\" height=\"31\" border=0 name=\"n07\"></a>
');
doc.write('<a href=\"/soluzioni\" onmouseover=\"bfmovepic(\'n08\',\'/img/froll1-09.gif\')\" onmouseout=\"bfmovepic(\'n08\',\'/img/fianco1-31.gif\')\"><img alt=\"\" src=\"/img/barrasx.gif\" width=\"25\" height=\"31\" border=0></a><a href=\"/soluzioni\" onmouseover=\"bfmovepic(\'n08\',\'/img/froll1-09.gif\')\" onmouseout=\"bfmovepic(\'n08\',\'/img/fianco1-31.gif\')\"><img alt=\"Soluzioni\" src=\"/img/fianco1-30.gif\" width=\"94\" height=\"31\" border=0></a><a href=\"/soluzioni\" onmouseover=\"bfmovepic(\'n08\',\'/img/froll1-09.gif\')\" onmouseout=\"bfmovepic(\'n08\',\'/img/fianco1-31.gif\')\"><img alt=\"\" src=\"/img/fianco1-31.gif\" width=\"54\" height=\"31\" border=0 name=\"n08\"></a>
');
doc.write('<a href=\"/flashnjava\" onmouseover=\"bfmovepic(\'n09\',\'/img/froll1-10.gif\')\" onmouseout=\"bfmovepic(\'n09\',\'/img/fianco1-34.gif\')\"><img alt=\"\" src=\"/img/barrasx.gif\" width=\"25\" height=\"31\" border=0 ></a><a href=\"/flashnjava\" onmouseover=\"bfmovepic(\'n09\',\'/img/froll1-10.gif\')\" onmouseout=\"bfmovepic(\'n09\',\'/img/fianco1-34.gif\')\"><img alt=\"Flash\'n\'Java\" src=\"/img/fianco1-33.gif\" width=\"94\" height=\"31\" border=0 ></a><a href=\"/flashnjava\" onmouseover=\"bfmovepic(\'n09\',\'/img/froll1-10.gif\')\" onmouseout=\"bfmovepic(\'n09\',\'/img/fianco1-34.gif\')\"><img alt=\"\" src=\"/img/fianco1-34.gif\" width=\"54\" height=\"31\" border=0 name=\"n09\"></a>
');
doc.write('<a href=\"http://www.xenia.it/arretrati/\" target=\"_blank\" onmouseover=\"bfmovepic(\'n10\',\'/img/froll1-11.gif\')\" onmouseout=\"bfmovepic(\'n10\',\'/img/fianco1-37.gif\')\"><img alt=\"\" src=\"/img/barrasx.gif\" width=\"25\" height=\"31\" border=0></a><a href=\"http://www.xenia.it/arretrati/\" target=\"_blank\" onmouseover=\"bfmovepic(\'n10\',\'/img/froll1-11.gif\')\" onmouseout=\"bfmovepic(\'n10\',\'/img/fianco1-37.gif\')\"><img alt=\"Arretrati\" src=\"/img/fianco1-36.gif\" width=\"94\" height=\"31\" border=0></a><a href=\"http://www.xenia.it/arretrati/\" target="_blank" onmouseover=\"bfmovepic(\'n10\',\'/img/froll1-11.gif\')\" onmouseout=\"bfmovepic(\'n10\',\'/img/fianco1-37.gif\')\"><img alt=\"\" src=\"/img/fianco1-37.gif\" width=\"54\" height=\"31\" border=0 name=\"n10\"></a>
');
doc.write('<a href=\"/redazione\" onmouseover=\"bfmovepic(\'n11\',\'/img/froll1-12.gif\')\" onmouseout=\"bfmovepic(\'n11\',\'/img/fianco1-40.gif\')\"><img alt=\"\" src=\"/img/barrasx.gif\" width=\"25\" height=\"31\" border=0></a><a href=\"/redazione\" onmouseover=\"bfmovepic(\'n11\',\'/img/froll1-12.gif\')\" onmouseout=\"bfmovepic(\'n11\',\'/img/fianco1-40.gif\')\"><img alt=\"Redazione\" src=\"/img/fianco1-39.gif\" width=\"94\" height=\"31\" border=0></a><a href=\"/redazione\" onmouseover=\"bfmovepic(\'n11\',\'/img/froll1-12.gif\')\" onmouseout=\"bfmovepic(\'n11\',\'/img/fianco1-40.gif\')\"><img alt=\"\" src=\"/img/fianco1-40.gif\" width=\"54\" height=\"31\" border=0 name=\"n11\"></a>
');
doc.write('<img src=\"/img/bg.gif\" width=\"25\" height=\"16\"><img src=\"/img/fianco1-41.gif\" width=\"94\" height=\"16\">
');
doc.write('<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" background=\"/img/bgbanda.gif\">');
doc.write('<tr>');
doc.write('<td>');
doc.write('<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" background=\"/img/spaziatore.gif\">');
doc.write('<tr>');
doc.write('<td>');
doc.write('<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" height=\"50\" background=\"/img/spaziatore.gif\">');
doc.write('<tr>');
doc.write('<td background=\"/img/bg.gif\"><img border=\"0\" src=\"/img/barrasx1.gif\" width=\"25\" height=\"33\"></td>');
doc.write('<td background=\"/img/fianco1-41.gif\"><input type=\"image\" alt=\"Cerca\" border=\"0\" src=\"/img/fianco1-43.gif\" height=\"33\"></td>');
doc.write('</tr>');
doc.write('</table>');
doc.write('</td>');
doc.write('<td>');
doc.write('<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\">');
doc.write('<tr>');
doc.write('<td><img src=\"/img/cerca-as.gif\" border=\"0\"></td>');
doc.write('<td background=\"/img/cerca-as2.gif\" width=\"14\"><img src=\"/img/spaziatore.gif\" height=\"5\" width=\"1\"></td>');
doc.write('<td background=\"/img/cerca-ac.gif\"><img src=\"/img/spaziatore.gif\" height=\"5\" width=\"1\"></td>');
doc.write('<td><img src=\"/img/cerca-ad.gif\"></td>');
doc.write('</tr>');
doc.write('<tr>');
doc.write('<td background=\"/img/cerca-ms.gif\"><img src=\"/img/spaziatore.gif\" height=\"1\" width=\"5\"></td>');
doc.write('<td colspan=\"2\" background=\"/img/fianco1-43.gif\"><input type=\"text\" name=\"kw\" id=\"kw\" size=\"8\"></td>');
doc.write('<td background=\"/img/cerca-md.gif\"><img src=\"/img/spaziatore.gif\" height=\"1\" width=\"5\"></td>');
doc.write('</tr>');
doc.write('<tr>');
doc.write('<td><img src=\"/img/cerca-bs.gif\" border=\"0\"></td>');
doc.write('<td background=\"/img/cerca-bs2.gif\" width=\"14\"><img src=\"/img/spaziatore.gif\" height=\"4\" width=\"1\"></td>');
doc.write('<td background=\"/img/cerca-bc.gif\"><img src=\"/img/spaziatore.gif\" height=\"4\" width=\"1\"></td>');
doc.write('<td><img src=\"/img/cerca-bd.gif\"></td>');
doc.write('</tr>');
doc.write('</table>');
doc.write('</td>');
doc.write('</tr>');
doc.write('</table>');
doc.write('</td>');
doc.write('</tr>');
doc.write('<tr><td><img src=\"/img/bg.gif\" width=\"25\" height=\"16\"><img src=\"/img/fianco1-46.gif\">
');
doc.write('<img src=\"/img/bg.gif\" width=\"25\" height=\"16\"><img src=\"/img/fiacz.gif\" width=\"81\" height=\"16\"></td>');
doc.write('</tr>');
doc.write('</table>');
doc.write('</form>');
}
function getexpirydate(nodays){
var UTCstring;
Today = new Date();
nomilli=Date.parse(Today);
Today.setTime(nomilli+nodays*24*60*60*1000);
UTCstring = Today.toUTCString();
return UTCstring;
}
function getCookie(name) { // use: getCookie("name");
var bites = document.cookie.split("; "); // break cookie into array of bites
for (var i=0; i < bites.length; i++) {
nextbite = bites[i].split("="); // break into name and value
if (nextbite[0] == name) // if name matches
return unescape(nextbite[1]); // return value
}
return null;
}
The Blues is alright!
www.zioweb.it
ultima parte del codice:
function setCookie(name, value, days) { // use: setCookie("name", value);
var today = new Date();
var expiry = new Date(today.getTime() + days * 24 * 60 * 60 * 1000); // determiniamo la data di scadenza
if (value != null && value != "")
document.cookie=name + "=" + escape(value) + "; expires=" + expiry.toGMTString();
bites = document.cookie.split("; "); // update cookie bites
}
function insertBanner() {
if ( bNetscape4 ) {
doc=document.layers["divMenu"].document;
} else {
doc=document;
}
rand = Math.random();
if (rand < 0.33) {
doc.write('[img]/img/banner.gif[/img]');
} else if (rand < 0.66) {
doc.write('[img]/img/banner.gif[/img]');
} else {
doc.write('[img]/img/banner2.gif[/img]');
}
}
SELEZIONA TUTTO IL CODICE E COPIA E INCOLLA IN BLOCCO NOTE. SALVALO POI .JS E INSERISCILO NEL TUO SITO, SCRIVENDO NELL'HTML DELLA PAGINA QUESTO:
<script language="JavaScript1.2" type="text/javascript" src="http://indirizzo_tuo_sito/rc.js"></script>
<script language="JavaScript1.2" type="text/javascript">
<!--
PreloadImages();
//-->
</script>
PRIMA PERO' RICORDATI DI MODIFICARE PER BENE IL JS, CAMBIANDO I PERCORSI RELATIVI DELLE IMMAGINI CON I TUOI. LO SCRIPT CREA IL MENU' PRENDENDO DIVERSI PEZZI DI IMG QUINDI DEVI PRIMA RICOSTRUIRLO, SALVARE TUTTE LE IMG IN UNA CARTELLA E POI PROGRAMMARE LO SCRIPT A DOVERE PER RICOSTRUIRE LE IMMAGINI NEL TUO SITO.
Poi fammi sapere se funziona();
The Blues is alright!
www.zioweb.it