473,387 Members | 1,673 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

[js] tab menu

Lea
Hi,

I have difficulties in understanding the following script. If a good soul
was passing by here ...

Thks

Lea

<script language="javascript">
var userEmail=getCookie("idlogin[m]");var gTimer=null;var gTimer2=null;var
bEnableEffect=false;var
bEnableFavorites=getCookie("fav")=="yes"?true:fals e;var aTabs=new
Array();var aVisitedLinks=new Array();var
sTbPath='http://toolbar.tiscali.fr/';var
sDefaultLogo=sTbPath+'media/logo.gif';var t='http://';var
u='.tiscali.fr/';var w=t+'www'+u;var z=t+'register'+u;aTabs[0]=new
Tab("accueil","#7E71B4","#BFB8DA",w);aTabs[0].addLink('e-mail',w+'webmail');
aTabs[0].addLink('bienvenue','javascript: var bv =
window.open(\'http://www.tiscali.fr/bienvenue/\',\'bienvenue\',\'width=560,h
eight=565,left=50,top=50\');');aTabs[0].addLink('assistance','http://support
'+u+'index.asp');if(userEmail==""){aTabs[1]=new Tab("nos
offres","#FF9706","#FFCB83",z+'forfaits/');aTabs[1].addLink('adsl
illimit&eacute;',z+'adsl/');aTabs[1].addLink('wifi',z+'adsl/signup.php3?goto
=ADSL_WIFI');aTabs[1].addLink('forfaits
illimit&eacute;s',z+'adsl/signup.php3?goto=IFI');aTabs[1].addLink('forfaits
5h\/10h',z+'adsl/signup.php3?goto=FORFAITS');aTabs[1].addLink('acc&egrave;s
gratuit',z+'adsl/signup.php3?goto=ACCES_GRATUIT');aTabs[1].addLink('d&eacute
;j&agrave; abonn&eacute; ?',z+'selfcare/');}else{aTabs[1]=new
Tab("abonnes","#FF9706","#FFCB83",z+'selfcare/');aTabs[1].addLink('mon
compte',z+'selfcare/');aTabs[1].addLink('changer
d\'offre',z+'selfcare/');aTabs[1].addLink('parrainage',z+'parrainage/');aTab
s[1].addLink('reciprok',t+'reciprok'+u);aTabs[1].addLink('s&eacute;curit&eac
ute; PC',w+'securitepc');aTabs[1].addLink('s&eacute;curit&eacute;
mail',w+'supermail');aTabs[1].addLink('s&eacute;curit&eacute;
achat',w+'securiteachat');aTabs[1].addLink('barre
magique',t+'barremagique'+u);}aTabs[2]=new
Tab("services","#61AF32","#B0D799",w+'services.asp ');aTabs[2].addLink('emplo
i',w+'emploi/');aTabs[2].addLink('fax',t+'fax'+u);aTabs[2].addLink('immo',w+
'immobilier');aTabs[2].addLink('logiciels',t+'telechargement'+u);aTabs[2].ad
dLink('pages
perso',t+'www.chez'+u);aTabs[2].addLink('photo',w+'photo/');aTabs[2].addLink
('plans &amp;
iti',t+'plansitineraires'+u+'tiscali/');aTabs[2].addLink('s&eacute;curit&eac
ute;',w+'securite');aTabs[2].addLink('shopping',t+'www.shopping'+u);aTabs[2]
..addLink('sms',t+'services'+u+'smsforfaits/index.php?service=express_sms');a
Tabs[2].addLink('webcam',t+'webcam'+u);aTabs[3]=new
Tab("actu","#0061B4","#80B0DA",w+'actu.asp');aTabs[3].addLink('actualit&eacu
te;s','http://actu'+u+'enune/home.asp');aTabs[3].addLink('auto-moto',t+'auto
moto'+u);aTabs[3].addLink('bourse',t+'bourse'+u);aTabs[3].addLink('europe',t
+'europe'+u);aTabs[3].addLink('m&eacute;t&eacute;o',w+'meteo/');aTabs[3].add
Link('professionnel',w+'professionnel');aTabs[3].addLink('sport',t+'sport'+u
);aTabs[3].addLink('t&eacute;l&eacute;vision',t+'tv'+u);aTab s[4]=new
Tab("loisirs","#D8005F","#EC80AF",w+'loisirs.asp') ;aTabs[4].addLink('chat
&amp;
forums',t+'communautes'+u);aTabs[4].addLink('cin&eacute;ma',t+'www.mcinema.c
om/');aTabs[4].addLink('f&eacute;minin',w+'femmes/');aTabs[4].addLink('horos
cope',t+'horoscope'+u);aTabs[4].addLink('jeux',w+'jeux/');aTabs[4].addLink('
mobile',w+'mobile/');aTabs[4].addLink('musique',t+'musique'+u);aTabs[4].addL
ink('rencontres',t+'rencontres'+u);aTabs[4].addLink('sexy',w+'sexy');aTabs[4
].addLink('tests',w+'tests');aTabs[4].addLink('voyages
',w+'voyages/');function
Tab(sLabel,sColor,sdColor,sLink){this.id='tab_'+aT abs.length;this.color=sCol
or;this.dcolor=sdColor;this.label=sLabel;this.link =sLink;this.links=new
Array();this.addLink=tab_addlink;}function
tab_addlink(sLabel,sLink){this.links[this.links.length]=new
Link(this.id+'_'+this.links.length,sLabel,sLink);} function
Link(sID,sLabel,sLink){this.ID=sID;this.label=sLab el;this.link=sLink;if(bEna
bleFavorites){this.count=getCookie(sID)!=""?getCoo kie(sID):0;if(document.loc
ation==this.link){this.count++;setCookie(sID,this. count,365);}if(this.count>
0)aVisitedLinks[aVisitedLinks.length]=this;}}function
colle(iRank){clearTimeout(gTimer2);gTimer=setTimeo ut('ChangeTab('+iRank+')',
50);}function
decolle(){clearTimeout(gTimer);gTimer2=setTimeout( 'ChangeTab('+(topbar_tab-1
)+')',10000);}var OptSel,OptSho;OptSel="<option value=0>tout le web<option
value=8>toutes les images<option value=sh>tout le shopping";OptSho="<option
value=sh>tout le shopping<option value=0>tout le web<option value=8>toutes
les images";adres=new
String(document.location);adres=adres.toLowerCase( );aShop=(adres.indexOf("sh
opping.tiscali.fr")>-1)?1:0;if(aShop)OptSel=OptSho;function
Render(){document.write('<style>#topbar {position: relative; font:12px
Arial, Helvetica, sans-serif;}#topbar a, #topbar a:visited{ text-decoration:
none; font:12px Arial, Helvetica, sans-serif; color: #ffffff; font-weight:
bold; } #topbar a:hover{text-decoration: underline}#topbar .topbar_top
{width: 776px; background-color: #ffffff; height: 25px;}#topbar
..topbar_middle {width: 776px; background-color: #7E71B4; height: 20px;
text-align: right;}table.tabs {width: 463px; height: 25px;
cursor:pointer;}td.intertab { width: 2px;}td.tab {height: 24px; width: 91px;
text-align: center; background-image: url('+sTbPath+'/media/tab.png);
text-transform: uppercase; } td.belowtab {height: 1px; width: 91px;
background-color: #FFFFFF}#topbar_links {display: hidden;}#topbar_links a
{color: white; }.topbar_bottom
{height:41px;width:776px;background-color:#E5E5E5; border-bottom:1px solid
#EDECEC; }#topbar .topbar_bottom a, #topbar .topbar_bottom a:visited
{font-size:11px;font-family:Arial;color: #0750D9}.topbar_bottom .mail
{width:144px;background-color:#D7D3E5;height:41px; text-align:
left; }.topbar_bottom .tbtds {padding-left: 5px; }.topbar_bottom select
{font-size:11px;font-family:Arial;font-weight:100;width:140px;}.topbar_botto
m a.title {font-size:17px;font-family:Arial}.topbar_bottom .advanced
{padding-left: 5px;}.topbar_bottom .keyword {width:200px;border:1px solid
#7E71B4;}#topbar .idlogin {padding-left: 5px; font-size:8pt; color:
white; }#topbar .idlogin a.cu {font-size: 7pt; font-weight:
normal; }#persobar {width: 776px; background: #f0f0f0; color: #232896;
text-align: left; height: 16px; border-top: 1px #808080 solid;
border-bottom: 1px #808080 solid;}#persobar a.links,#persobar
a:visited.links {font: 8pt arial; color: black; padding-right:
20px;}</style>');document.write('<div id=topbar>');document.write('<table
cellpadding=0 cellspacing=0 class=topbar_top border=0><tr><td rowspan=2
width=331 align=left><img src="'+topbar_logo+'" id=imgLogo
onerror="this.src=sDefaultLogo;"></td><td
height=15></td></tr>');document.write('<tr><td
height=24>');document.write('<table cellpadding=0 cellspacing=0
class=tabs>');document.write('<tr>');for(var
i=0;i<aTabs.length;i++){document.write('<td class=tab
style="background-color:'+aTabs[i].color+';" id='+aTabs[i].id+'><a
href="'+aTabs[i].link+'" onmouseover="colle('+i+')" onmouseout="decolle()"
target=_top>'+aTabs[i].label+'</a></td>');if(i+1<aTabs.length)document.write
('<td
class=intertab></td>');}document.write('</tr>');document.write('<tr>');for(v
ar i=0;i<aTabs.length;i++){document.write('<td class=belowtab
id=b_'+aTabs[i].id+'></td>');if(i+1<aTabs.length)document.write('<td
class=intertab></td>');}document.write('</tr>');document.write('</table>');d
ocument.write('</td></tr></table>');document.write('<table cellpadding=0
cellspacing=0 class=topbar_middle border=0><tr><td id=topbar_links
align=right></td></tr></table>');document.write('<table class=topbar_bottom
cellpadding=0 cellspacing=0><tr><td id=mail class=mail><img
src=http://toolbar.tiscali.fr/media/pi_mail.gif hspace=10 vspace=5 width=16
height=16 border=0 align=left><a href=http://webmail.tiscali.fr><FONT
id=tbEmail><ILAYER id=tbEmailNS>Consultez <br>vos
e-mails</ILAYER></FONT></a></td><form name=frmTBShopping
action=http://www.shopping.tiscali.fr/query.html method=get><input
type=hidden name=qu></form><form
action=http://rechercher.nomade.tiscali.fr/recherche.asp name=frmTB id=frmTB
OnSubmit=\'return frmTB_valide();\'><input type=hidden name=src
value=toolbar><input type=hidden name=MT><td class=tbtds><a
href=http://www.nomade.tiscali.fr/ class=title
style="font-size:17px;">Recherche</a>&nbsp;&nbsp;<input style="width:200;"
type=text class=keyword name=s>&nbsp;&nbsp; <span
style="font-size:17px;font-family:Arial;color:#666666;"><strong>dans</strong
</span>&nbsp; <select name=opt

id=frmTB_Opt>'+OptSel+'</select>&nbsp;&nbsp;<input type=image class=button
src=http://toolbar.tiscali.fr/media/btn_ok2.gif alt=Search border="0"
align=absmiddle></a><a href=http://rechercher.nomade.tiscali.fr/nomade.asp
class=advanced style="font-weight:100"><b>»</b> options</a><a
href="javascript:var windowVar =
window.open(\'http://support.tiscali.fr/popup.asp?catid=21&amp;ficheid=227\'
,\'dd\',\'toolbar=0,location=0,directories=0,statu s=0,menubar=0,scrollbars=1
,resizable=0,width=614,height=550\');" class=advanced
style="font-weight:100"><b>»</b>
aide</a></td></form></tr></table>');if(bEnableFavorites&&aVisitedLinks.lengt
h>0){aVisitedLinks.sort(SortLinks);var
maxLinks=aVisitedLinks.length>8?8:aVisitedLinks.le ngth;document.write('<div
id=persobar>&nbsp;<b>Mes favoris:</b>&nbsp;&nbsp;&nbsp;&nbsp;');for(var
nl=0;nl<maxLinks;nl++)document.write(' <a href="'+aVisitedLinks[nl].link+'"
class=links
title='+aVisitedLinks[nl].count+'>'+aVisitedLinks[nl].label+'</a>');document
..write('</div>');}document.write('</div>');}function
ChangeTab(tabIndex){for(var
i=0;i<aTabs.length;i++){document.getElementById('b _'+aTabs[i].id).style.back
groundColor='#ffffff';if(bEnableEffect)document.ge tElementById(aTabs[i].id).
style.backgroundColor=aTabs[i].dcolor;}if(bEnableEffect)document.getElementB
yId(aTabs[tabIndex].id).style.backgroundColor=aTabs[tabIndex].color;document
..getElementById('b_'+aTabs[tabIndex].id).style.backgroundColor=aTabs[tabInde
x].color;var
topbar_linksEL=document.getElementById('topbar_lin ks');topbar_linksEL.style.
backgroundColor=aTabs[tabIndex].color;var htLinks='<table cellspacing=0
cellpadding=0 border=0><tr>';for(var
j=0;j<aTabs[tabIndex].links.length;j++)htLinks+='<td><a
href="'+aTabs[tabIndex].links[j].link+'"
target=_top>.'+aTabs[tabIndex].links[j].label+'</a></td><td width=20
height=1></td>';htLinks+='</tr></table>';if(tabIndex==0&&userEmail!="")topba
r_linksEL.innerHTML="<table cellspacing=0 cellpadding=0 width=776
border=0><tr><td class=idlogin width=400
align=left>"+unescape(userEmail)+"&nbsp;&nbsp;&nbs p;&raquo; <a class=cu
href=http://www.tiscali.fr/webmail/login.asp?mod=y>changer
d'utilisateur</a></td><td width=376
align=right>"+htLinks+'</td></tr></table>';else
topbar_linksEL.innerHTML=htLinks;}function
ChangeLogo(sPath){document.getElementById('imgLogo ').src=sPath;}function
getCookie(CookieName){var lf="\n";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(Coo
kiePieces[0]==CookieName)ReturnValue=CookiePieces[1];}return
ReturnValue;}function setCookie(name,value,days){if(!days)days=-1;var
expire=new
Date();expire.setTime(expire.getTime()+86400000*da ys);document.cookie=name+"
="+escape(value)+";path=/;domain=tiscali.fr;expires="+expire.toGMTString()+ "
;";}function SortLinks(a,b){return b.count-a.count;}function
frmTB_valide(){if(document.forms["frmTB"].opt.options[document.forms["frmTB"
].opt.selectedIndex].value=='sh'){document.forms["frmTBShopping"].qu.value=d
ocument.forms["frmTB"].s.value;document.forms["frmTBShopping"].submit();retu
rn
false;}else{document.forms["frmTB"].MT.value=document.forms["frmTB"].s.value
;}return
true;}try{if(self.topbar_tab==undefined||self.topb ar_tab<1||self.topbar_tab>
5)var topbar_tab=1;if(self.topbar_logo==undefined)var
topbar_logo=sDefaultLogo;}catch(TBex){var topbar_tab=1;var
topbar_logo=sDefaultLogo;}Render();ChangeTab(self. topbar_tab-1);
</script>
Jul 23 '05 #1
2 2917
Lea wrote:
Hi,

I have difficulties in understanding the following script. If a good soul
was passing by here ...

Thks

Lea

<script language="javascript">
var userEmail=getCookie("idlogin[m]");var gTimer=null;var gTimer2=null;var
bEnableEffect=false;var
bEnableFavorites=getCookie("fav")=="yes"?true:fals e;var aTabs=new
Array();var aVisitedLinks=new Array();var
sTbPath='http://toolbar.tiscali.fr/';var
sDefaultLogo=sTbPath+'media/logo.gif';var t='http://';var
u='.tiscali.fr/';var w=t+'www'+u;var z=t+'register'+u;aTabs[0]=new
Tab("accueil","#7E71B4","#BFB8DA",w);aTabs[0].addLink('e-mail',w+'webmail'); aTabs[0].addLink('bienvenue','javascript: var bv =
window.open(\'http://www.tiscali.fr/bienvenue/\',\'bienvenue\',\'width=560,h eight=565,left=50,top=50\');');aTabs[0].addLink('assistance','http://support '+u+'index.asp');if(userEmail==""){aTabs[1]=new Tab("nos
offres","#FF9706","#FFCB83",z+'forfaits/');aTabs[1].addLink('adsl
illimit&eacute;',z+'adsl/');aTabs[1].addLink('wifi',z+'adsl/signup.php3?goto =ADSL_WIFI');aTabs[1].addLink('forfaits
illimit&eacute;s',z+'adsl/signup.php3?goto=IFI');aTabs[1].addLink('forfaits 5h\/10h',z+'adsl/signup.php3?goto=FORFAITS');aTabs[1].addLink('acc&egrave;s gratuit',z+'adsl/signup.php3?goto=ACCES_GRATUIT');aTabs[1].addLink('d&eacute ;j&agrave; abonn&eacute; ?',z+'selfcare/');}else{aTabs[1]=new
Tab("abonnes","#FF9706","#FFCB83",z+'selfcare/');aTabs[1].addLink('mon
compte',z+'selfcare/');aTabs[1].addLink('changer
d\'offre',z+'selfcare/');aTabs[1].addLink('parrainage',z+'parrainage/');aTab s[1].addLink('reciprok',t+'reciprok'+u);aTabs[1].addLink('s&eacute;curit&eac ute; PC',w+'securitepc');aTabs[1].addLink('s&eacute;curit&eacute;
mail',w+'supermail');aTabs[1].addLink('s&eacute;curit&eacute;
achat',w+'securiteachat');aTabs[1].addLink('barre
magique',t+'barremagique'+u);}aTabs[2]=new
Tab("services","#61AF32","#B0D799",w+'services.asp ');aTabs[2].addLink('emplo i',w+'emploi/');aTabs[2].addLink('fax',t+'fax'+u);aTabs[2].addLink('immo',w+ 'immobilier');aTabs[2].addLink('logiciels',t+'telechargement'+u);aTabs[2].ad dLink('pages
perso',t+'www.chez'+u);aTabs[2].addLink('photo',w+'photo/');aTabs[2].addLink ('plans &amp;
iti',t+'plansitineraires'+u+'tiscali/');aTabs[2].addLink('s&eacute;curit&eac ute;',w+'securite');aTabs[2].addLink('shopping',t+'www.shopping'+u);aTabs[2] ..addLink('sms',t+'services'+u+'smsforfaits/index.php?service=express_sms');a Tabs[2].addLink('webcam',t+'webcam'+u);aTabs[3]=new
Tab("actu","#0061B4","#80B0DA",w+'actu.asp');aTabs[3].addLink('actualit&eacu te;s','http://actu'+u+'enune/home.asp');aTabs[3].addLink('auto-moto',t+'auto moto'+u);aTabs[3].addLink('bourse',t+'bourse'+u);aTabs[3].addLink('europe',t +'europe'+u);aTabs[3].addLink('m&eacute;t&eacute;o',w+'meteo/');aTabs[3].add Link('professionnel',w+'professionnel');aTabs[3].addLink('sport',t+'sport'+u );aTabs[3].addLink('t&eacute;l&eacute;vision',t+'tv'+u);aTab s[4]=new
Tab("loisirs","#D8005F","#EC80AF",w+'loisirs.asp') ;aTabs[4].addLink('chat
&amp;
forums',t+'communautes'+u);aTabs[4].addLink('cin&eacute;ma',t+'www.mcinema.c om/');aTabs[4].addLink('f&eacute;minin',w+'femmes/');aTabs[4].addLink('horos cope',t+'horoscope'+u);aTabs[4].addLink('jeux',w+'jeux/');aTabs[4].addLink(' mobile',w+'mobile/');aTabs[4].addLink('musique',t+'musique'+u);aTabs[4].addL ink('rencontres',t+'rencontres'+u);aTabs[4].addLink('sexy',w+'sexy');aTabs[4 ].addLink('tests',w+'tests');aTabs[4].addLink('voyages
',w+'voyages/');function
Tab(sLabel,sColor,sdColor,sLink){this.id='tab_'+aT abs.length;this.color=sCol or;this.dcolor=sdColor;this.label=sLabel;this.link =sLink;this.links=new
Array();this.addLink=tab_addlink;}function
tab_addlink(sLabel,sLink){this.links[this.links.length]=new
Link(this.id+'_'+this.links.length,sLabel,sLink);} function
Link(sID,sLabel,sLink){this.ID=sID;this.label=sLab el;this.link=sLink;if(bEna bleFavorites){this.count=getCookie(sID)!=""?getCoo kie(sID):0;if(document.loc ation==this.link){this.count++;setCookie(sID,this. count,365);}if(this.count> 0)aVisitedLinks[aVisitedLinks.length]=this;}}function
colle(iRank){clearTimeout(gTimer2);gTimer=setTimeo ut('ChangeTab('+iRank+')', 50);}function
decolle(){clearTimeout(gTimer);gTimer2=setTimeout( 'ChangeTab('+(topbar_tab-1 )+')',10000);}var OptSel,OptSho;OptSel="<option value=0>tout le web<option
value=8>toutes les images<option value=sh>tout le
shopping";OptSho="<option value=sh>tout le shopping<option value=0>tout le
web<option value=8>toutes les images";adres=new
String(document.location);adres=adres.toLowerCase( );aShop=(adres.indexOf("sh opping.tiscali.fr")>-1)?1:0;if(aShop)OptSel=OptSho;function
Render(){document.write('<style>#topbar {position: relative; font:12px
Arial, Helvetica, sans-serif;}#topbar a, #topbar a:visited{
text-decoration: none; font:12px Arial, Helvetica, sans-serif; color:
#ffffff; font-weight: bold; } #topbar a:hover{text-decoration:
underline}#topbar .topbar_top
{width: 776px; background-color: #ffffff; height: 25px;}#topbar
.topbar_middle {width: 776px; background-color: #7E71B4; height: 20px;
text-align: right;}table.tabs {width: 463px; height: 25px;
cursor:pointer;}td.intertab { width: 2px;}td.tab {height: 24px; width:
91px; text-align: center; background-image:
url('+sTbPath+'/media/tab.png); text-transform: uppercase; } td.belowtab
{height: 1px; width: 91px; background-color: #FFFFFF}#topbar_links
{display: hidden;}#topbar_links a
{color: white; }.topbar_bottom
{height:41px;width:776px;background-color:#E5E5E5; border-bottom:1px solid
#EDECEC; }#topbar .topbar_bottom a, #topbar .topbar_bottom a:visited
{font-size:11px;font-family:Arial;color: #0750D9}.topbar_bottom .mail
{width:144px;background-color:#D7D3E5;height:41px; text-align:
left; }.topbar_bottom .tbtds {padding-left: 5px; }.topbar_bottom select
{font-size:11px;font-family:Arial;font-weight:100;width:140px;}.topbar_botto m a.title {font-size:17px;font-family:Arial}.topbar_bottom .advanced
{padding-left: 5px;}.topbar_bottom .keyword {width:200px;border:1px solid
#7E71B4;}#topbar .idlogin {padding-left: 5px; font-size:8pt; color:
white; }#topbar .idlogin a.cu {font-size: 7pt; font-weight:
normal; }#persobar {width: 776px; background: #f0f0f0; color: #232896;
text-align: left; height: 16px; border-top: 1px #808080 solid;
border-bottom: 1px #808080 solid;}#persobar a.links,#persobar
a:visited.links {font: 8pt arial; color: black; padding-right:
20px;}</style>');document.write('<div id=topbar>');document.write('<table
cellpadding=0 cellspacing=0 class=topbar_top border=0><tr><td rowspan=2
width=331 align=left><img src="'+topbar_logo+'" id=imgLogo
onerror="this.src=sDefaultLogo;"></td><td
height=15></td></tr>');document.write('<tr><td
height=24>');document.write('<table cellpadding=0 cellspacing=0
class=tabs>');document.write('<tr>');for(var
i=0;i<aTabs.length;i++){document.write('<td class=tab
style="background-color:'+aTabs[i].color+';" id='+aTabs[i].id+'><a
href="'+aTabs[i].link+'" onmouseover="colle('+i+')" onmouseout="decolle()"
target=_top>'+aTabs[i].label+'</a></td>');if(i+1<aTabs.length)document.write ('<td
class=intertab></td>');}document.write('</tr>');document.write('<tr>');for(v ar i=0;i<aTabs.length;i++){document.write('<td class=belowtab
id=b_'+aTabs[i].id+'></td>');if(i+1<aTabs.length)document.write('<td
class=intertab></td>');}document.write('</tr>');document.write('</table>');d ocument.write('</td></tr></table>');document.write('<table cellpadding=0
cellspacing=0 class=topbar_middle border=0><tr><td id=topbar_links
align=right></td></tr></table>');document.write('<table
class=topbar_bottom cellpadding=0 cellspacing=0><tr><td id=mail
class=mail><img src=http://toolbar.tiscali.fr/media/pi_mail.gif hspace=10
vspace=5 width=16 height=16 border=0 align=left><a
href=http://webmail.tiscali.fr><FONT id=tbEmail><ILAYER
id=tbEmailNS>Consultez <br>vos e-mails</ILAYER></FONT></a></td><form
name=frmTBShopping action=http://www.shopping.tiscali.fr/query.html
method=get><input type=hidden name=qu></form><form
action=http://rechercher.nomade.tiscali.fr/recherche.asp name=frmTB
id=frmTB OnSubmit=\'return frmTB_valide();\'><input type=hidden name=src
value=toolbar><input type=hidden name=MT><td class=tbtds><a
href=http://www.nomade.tiscali.fr/ class=title
style="font-size:17px;">Recherche</a>&nbsp;&nbsp;<input style="width:200;"
type=text class=keyword name=s>&nbsp;&nbsp; <span
style="font-size:17px;font-family:Arial;color:#666666;"><strong>dans</strong
</span>&nbsp; <select name=opt

id=frmTB_Opt>'+OptSel+'</select>&nbsp;&nbsp;<input type=image class=button
src=http://toolbar.tiscali.fr/media/btn_ok2.gif alt=Search border="0"
align=absmiddle></a><a href=http://rechercher.nomade.tiscali.fr/nomade.asp
class=advanced style="font-weight:100"><b>»</b> options</a><a
href="javascript:var windowVar =

window.open(\'http://support.tiscali.fr/popup.asp?catid=21&amp;ficheid=227\' ,\'dd\',\'toolbar=0,location=0,directories=0,statu s=0,menubar=0,scrollbars=1 ,resizable=0,width=614,height=550\');" class=advanced
style="font-weight:100"><b>»</b>
aide</a></td></form></tr></table>');if(bEnableFavorites&&aVisitedLinks.lengt h>0){aVisitedLinks.sort(SortLinks);var
maxLinks=aVisitedLinks.length>8?8:aVisitedLinks.le ngth;document.write('<div id=persobar>&nbsp;<b>Mes favoris:</b>&nbsp;&nbsp;&nbsp;&nbsp;');for(var
nl=0;nl<maxLinks;nl++)document.write(' <a
href="'+aVisitedLinks[nl].link+'" class=links
title='+aVisitedLinks[nl].count+'>'+aVisitedLinks[nl].label+'</a>');document .write('</div>');}document.write('</div>');}function
ChangeTab(tabIndex){for(var
i=0;i<aTabs.length;i++){document.getElementById('b _'+aTabs[i].id).style.back groundColor='#ffffff';if(bEnableEffect)document.ge tElementById(aTabs[i].id). style.backgroundColor=aTabs[i].dcolor;}if(bEnableEffect)document.getElementB yId(aTabs[tabIndex].id).style.backgroundColor=aTabs[tabIndex].color;document ..getElementById('b_'+aTabs[tabIndex].id).style.backgroundColor=aTabs[tabInde x].color;var
topbar_linksEL=document.getElementById('topbar_lin ks');topbar_linksEL.style. backgroundColor=aTabs[tabIndex].color;var htLinks='<table cellspacing=0
cellpadding=0 border=0><tr>';for(var
j=0;j<aTabs[tabIndex].links.length;j++)htLinks+='<td><a
href="'+aTabs[tabIndex].links[j].link+'"
target=_top>.'+aTabs[tabIndex].links[j].label+'</a></td><td width=20
height=1></td>';htLinks+='</tr></table>';if(tabIndex==0&&userEmail!="")topba r_linksEL.innerHTML="<table cellspacing=0 cellpadding=0 width=776
border=0><tr><td class=idlogin width=400
align=left>"+unescape(userEmail)+"&nbsp;&nbsp;&nbs p;&raquo; <a class=cu
href=http://www.tiscali.fr/webmail/login.asp?mod=y>changer
d'utilisateur</a></td><td width=376
align=right>"+htLinks+'</td></tr></table>';else
topbar_linksEL.innerHTML=htLinks;}function
ChangeLogo(sPath){document.getElementById('imgLogo ').src=sPath;}function
getCookie(CookieName){var lf="\n";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(Coo kiePieces[0]==CookieName)ReturnValue=CookiePieces[1];}return
ReturnValue;}function setCookie(name,value,days){if(!days)days=-1;var
expire=new
Date();expire.setTime(expire.getTime()+86400000*da ys);document.cookie=name+" ="+escape(value)+";path=/;domain=tiscali.fr;expires="+expire.toGMTString()+ " ;";}function SortLinks(a,b){return b.count-a.count;}function
frmTB_valide(){if(document.forms["frmTB"].opt.options[document.forms["frmTB" ].opt.selectedIndex].value=='sh'){document.forms["frmTBShopping"].qu.value=d ocument.forms["frmTB"].s.value;document.forms["frmTBShopping"].submit();retu rn
false;}else{document.forms["frmTB"].MT.value=document.forms["frmTB"].s.value ;}return
true;}try{if(self.topbar_tab==undefined||self.topb ar_tab<1||self.topbar_tab> 5)var topbar_tab=1;if(self.topbar_logo==undefined)var
topbar_logo=sDefaultLogo;}catch(TBex){var topbar_tab=1;var
topbar_logo=sDefaultLogo;}Render();ChangeTab(self. topbar_tab-1);
</script>

This is a joke, right?
;-)

Regards,
Erwin Moller
Jul 23 '05 #2
JRS: In article <41***********************@news.xs4all.nl>, dated Fri,
6 Aug 2004 16:01:38, seen in news:comp.lang.javascript, Erwin Moller
<si******************************************@spam yourself.com> posted :
Lines: 272 Lea wrote:
Hi,

I have difficulties
...
This is a joke, right?


Posting it all again was a non-funny joke. Read the FAQ, and learn.

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://jibbering.com/faq/> JL / RC : FAQ for news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Ian Richardson | last post by:
If I follow the steps on http://www.dhtmlcentral.com/tutorials/tutorials.asp?id=11 to add .js files to a document on demand, let's say by <body onload="blah();">, how can I reliably tell that it...
12
by: confused | last post by:
After expressing my interest in expanding my new knowledge of HTML and CSS into the wild realm of JavaScript, I was advised that it is wiser to avoid it, since not all browsers are use it or are...
3
by: Papa.Legba.666 | last post by:
hi, it is my understanding that web crawls are not intelligent enough to prase the limitless number of JS menus out there. I want/need to have a JS menu, but I also want my whole site to be...
3
by: epigram | last post by:
I've got a javascript menu that uses an external .js file. In the .js file, there is a function that gets called by each of my .html pages to build up the menu for the page. The way I want to...
10
by: dujmovicv | last post by:
Hi! I have some menu buttons on my page 'somepage.php' which I've made in JS: <script language="JavaScript"> rollImage1 = new Image; rollImage1.src = "menu_b1_over.gif"; defaultImage1 = new...
21
by: firewood | last post by:
What to do? Should a menu system be constructed in JavaScript or CSS? A typical problem: Using PHP/MySQL or other server side db/scripting, one generates an array of categories and subcategories...
1
by: priscbean | last post by:
I'm a total newbie. I really need help with this script. Its a drop down menu formatted with a CSS. It's not a formatting issue but i can't get the JS to run. I think I'm having issues calling it or...
9
by: Mahernoz | last post by:
Hello Friends, The JavaScript File exmplmenu_var.js contains the code... (for the sake of brevity i am showing only that code which needs to be changed) I am actually developing a menu using...
4
by: N00b13 | last post by:
I have a great JS menu but I have to update every page each time I want to change a link. Is there a way to store my links in a file and call it so i only change that file? (what I have tried so far...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.