473,883 Members | 1,618 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help me to fix External . js problem in asp.net

hi everyone

Im trying to include an external js in my aspx page under the head
tag, it doesn't load or it displays an object expected error whenver
the function from the .js is called. Actually for repeated html im
using the external js, i mean the TOP, BOTTOM they are repeated in
every page, so i include them as functions in the external js and call
them. Why it doesn't work?
Please help me, i'm trying to find many resources but nothing helped
me. i even tried using registerclients criptblock, the same error
happens.

Feb 25 '07 #1
5 3706
On Feb 25, 8:21 pm, "althafex...@gm ail.com" <althafex...@gm ail.com>
wrote:
hi everyone

Im trying to include an external js in my aspx page under the head
tag, it doesn't load or it displays an object expected error whenver
the function from the .js is called. Actually for repeated html im
using the external js, i mean the TOP, BOTTOM they are repeated in
every page, so i include them as functions in the external js and call
them. Why it doesn't work?

Please help me, i'm trying to find many resources but nothing helped
me. i even tried using registerclients criptblock, the same error
happens.
post your js here

Feb 25 '07 #2
On Feb 25, 10:43*pm, "Alexey Smirnov" <alexey.smir... @gmail.com>
wrote:
On Feb 25, 8:21 pm, "althafex...@gm ail.com" <althafex...@gm ail.com>
wrote:
hi everyone
Im trying to include an external js in my aspx page under the head
tag, it doesn't load or it displays an object expected error whenver
the function from the .js is called. Actually for repeated html im
using the external js, i mean the TOP, BOTTOM they are repeated in
every page, so i include them as functions in the external js and call
them. Why it doesn't work?
Please help me, i'm trying to find many resources but nothing helped
me. i even tried using registerclients criptblock, the same error
happens.

post your js here

hi boss,

Below is my code for the main page which is calling the external .JS
just have a look at it. The same code if i make it a html page and
call the .JS files its fine, but if i make it as aspx page it doesn't
work.

<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1256">
<LINK href="../css/Style.css" type="text/css" rel="stylesheet ">
<script language="javas cript" src="../js/include.js"></script>
<script language="javas cript" src="../menuGen.js"></script>
<script language="javas cript" src="../menus.js"></script>
<TITLE>الجز يرة الرياضي </TITLE>
</head>
<body>
<script language="javas cript">createMe nus()</script>
<!----------Start Top---------->
<script type="text/javascript">Top ();</script>
<!----------End Top---------->
<table border="0" width="780" id="table1" cellspacing="0"
cellpadding="0" align="center">
<tr>
<td width="10" valign="top" background="../images/top_line_3.gif"
rowspan="2"><im g border="0" src="../images/left_crv_3.gif" ></td>

<td class="MainCont ent" rowspan="2" width="600">
<!----------Start Main Content---------->
<table cellspacing="0" cellpadding="0" width="410" border="0"
align="center">
<tr>
<td width="10" rowspan="3"><im g border="0" src="../images/
marquee_crv_1.g if"></td>
<td width="354" background="../images/marquee_line_1. gif"><img
border="0" src="../images/trick.gif" width="1" height="5"></td>
<td width="46" rowspan="3"><im g border="0" src="../images/
marquee_control .gif" usemap="#FPMap0 "></td>
</tr>
<tr>
<td width="354">
<script language="Javas cript">generate Marquee()</script>
</td>
</tr>
<tr>
<td width="354" background="../images/marquee_line_2. gif"><img
border="0" src="../images/trick.gif" width="1" height="4"></td>
</tr>
<tr>
<td width="410" background="../images/top_line_5.gif"
colspan="3"><im g border="0" src="../images/trick.gif" width="1"
height="11"></td>
</tr>
</table>

<table border="0" width="590" id="table4" cellspacing="0"
cellpadding="0" >
<!--CMS Bread Crumb depend on channels-->
<tr>
<td class="NewsBrea dCrumb"><a class="BreadCru mbLink" href="../
index.html">ا صف*ة الرئيسة </a>/ <a class="BreadCru mbLink" href="../
index.html">ا أخبار</a><span lang="ar-qa">/كرة القدم</span></td>
</tr>
<!--End of Bread Crumb-->

<!--CMS Title-->
<tr>
<td width="590"><im g border="0" src="../images/
news_title.gif" ></td>
</tr>
<!--End Cms Title-->
</table>
<!--CMS Top News-->
<table border="0" width="590" id="table4" cellspacing="0"
cellpadding="0" >
<tr>
<td width="590" colspan="4" align="right">< h2> <a
class="Mainnews body1_hyperlink 2" href="../News/football/
article8507.htm l">رونالد و بين الريال والميلا </a></h2></td>
</tr>
<tr>
<td width="170" valign="top">
<iframe name='I1' WIDTH='170' height='160' marginwidth='1'
marginheight='1 ' scrolling='no' border='0' frameborder='0' src='.../
live/frame6.html'></iframe>
</td>
<td width="10"><img src="../images/trick.gif" border="0"
width="10" height="1"></td>
<td width="130" valign="top">

<table border="0" cellpadding="0" cellspacing="0" width="130">
<tr><td width="130"><im g src="../images/body_crv_1.gif"
border="0"></td></tr>
<tr><td class="NewsArti cleDesc" height="154"><l ang="ar-
qa"><span lang="ar-qa">ذكرت ص*يفة &quot;آس&quot ; الرياضي أن نادي ريال
مدريد عرض انتقال كلاً من رونالدو وأنطوني كاسانو إلى ميلان الذي رفض
&quot;في الوقت ال*اضر&qu ot; هذا العرض.</span></td></tr>
<tr><td width="130" bgcolor="#C1DCF B"><a href="../News/
football/article8507.htm l"><img src="../images/body_more.gif"
border="0"></a></td></tr>
<tr><td width="130"><im g src="../images/body_crv_2.gif"
border="0"></td></tr>
</table>
</td>
<td width="280" valign="top">

<img border="0" src="../football/images/ronaldo02_m.jpg "
width="280" height="185"></td>
</tr>
<tr><td width="590" colspan="4"><im g src="../images/trick.gif"
border="0" width="1" height="10"></td></tr>
</table>

<!--end of Top-->
<table border="0" width="590" id="table4" cellspacing="0"
cellpadding="0" >
<tr>
<td width="400" style="border-bottom: solid 1px
#D8D4D4">&nbsp; </td>
<td width="190">
<img src="../images/football_title_ 01.gif" border="0"></td>
</tr>
<tr>
<td colspan="2"><im g src="../images/trick.gif" border="0"
width="1" height="10"></td>
</tr>
</table>
<!--CMS Double news-->
<table border="0" width="590" id="Table3" cellspacing="0"
cellpadding="0" >
<tr>
<td class="News_Lat estNewsTitle" style="width: 50%"><a
href="../News/football/article8508.htm l">كان ينهي مسيرته في 2008</a></
td>
<td width="5" rowspan="3" background="../images/
news_line.gif"> &nbsp;</td>
<td class="News_Lat estNewsTitle" style="width: 50%"><span
lang="ar-qa"><a href="../News/football/article8509.htm l">ديوغ يلتمس
المسام* </a></span></td>
</tr>
<tr>
<td class="News_Lat estNewsDesc" valign="top" style="width:
50%"><lang="ar-qa"><span lang="ar-qa"><img border="0" src="images/
kahn01_s.jpg" align="right" width="85" height="68">أ دال*ارس الدولي
الألمان السابق أوليفر كان للص*افة أنه سينهي مسيرته في الملاعب في عام
2008 مع انتهاء عقده ال*الي مع فريقه بايرن ميونيخ.</span></td>
<td class="News_Lat estNewsDesc" valign="top" style="width:
50%"><span lang="ar-qa"><img border="0" src="images/diogo_s.jpg"
align="right" width="85" height="68"></span>أمل نجم ريال سرقسطة
الأورغو اني كارلوس ديوغو, المعار من ريال مدريد<span lang="ar-qa">
الإسبان </spanألا يتعرض<span lang="ar-qa">للإيق ف</spanلفترة طويلة
عن اللعب<span lang="en-us">.</span></td>
</tr>
<tr>
<td class="News_Lat estNewsDesc" valign="top" style="width:
50%; text-align: left" height="18"><a href="../News/football/
article8508.htm l"><img border="0" src="../images/main_more.gif"
width="40" height="17" style="margin-left:5px;"></a></td>
<td class="News_Lat estNewsDesc" valign="top" style="width:
50%; text-align: left" height="18"><a href="../News/football/
article8509.htm l"><img border="0" src="../images/main_more.gif"
width="40" height="18" style="margin-left:5px;"></a></td>
</tr>
<!--End of Double news-->

<tr><td colspan="3">
<table border='0' width='100%' id='Table5' cellspacing='0'
cellpadding='0' >
<tr><td width='580' align='right'>< img border='0' src='../images/
other_news_titl e.gif'></td></tr>
<tr><td width='580' align='right'>
<table border='0' width='100%' id='table189' cellspacing='0'
cellpadding='0' bgcolor='#F3F3F 3'>
<tr><td colspan='2'><im g src='../images/news_crv_3.gif'
border='0'></td></tr>
<tr>
<td valign='middle' class='News_Oth erNewsLinks' height="23"
width="98%"><a href="../News/football/article8495.htm l">سلتي إلى
الدور الرابع لكأس اسكتلند </a></td>
<td width='2%' align='center' style='padding-top: 8px;'
valign='top' height="23"><im g src='../images/icon_1.gif' border='0'></
td>
</tr>
</table>
<table border='0' width='100%'id= 'table25' cellspacing='0'
cellpadding='0' bgcolor='#F3F3F 3'><tr><td></td></tr>
</table>
<table border='0' width='100%' id='table19' cellspacing='0'
cellpadding='0' bgcolor='#F3F3F 3'>
</table>
</td></tr><tr><td width='100%'><i mg src='../images/
news_crv_11.gif ' border='0' width='580' height=15></td></tr></table>

<!---->

</td></tr>
</table>
<!----------End Main Content---------->
</td>
<td width="10" valign="top" rowspan="2"><im g border="0" src="../
images/left_crv_2.gif" ></td>
<td class="RightNav " width="161">
<!----------Start Right---------->
<script type="text/javascript">Rig ht();</script>
<!----------End Right---------->
</td>
</tr>
<tr><td class="RightNav 2" valign=bottom width="161" ><script
language="javas cript">Right_() </script>
</td></tr>
</table>
<!----------Start Bottom---------->
<script type="text/javascript">Bot tom();</script>
<!----------End Bottom---------->
</body>
</html>

And this is one of the .JS file.

//document.write( "<meta http-equiv=Page-Enter
content=revealt rans(duration=2 ,transition=12) >");

function MM_preloadImage s() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.leng th,a=MM_preload Images.argument s; for(i=0;
i<a.length; i++)
if (a[i].indexOf("#")!= 0){ d.MM_p[j]=new Image; d.MM_p[j+
+].src=a[i];}}
}

function MM_swapImgResto re() { //v3.0
var i,x,a=document. MM_sr; for(i=0;a&&i<a. length&&(x=a[i])&&x.oSrc;i+
+) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document;
if((p=n.indexOf ("?"))>0&&paren t.frames.length ) {
d=parent.frames[n.substring(p+1 )].document; n=n.substring(0 ,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.fo rms.length;i++)
x=d.forms[i][n];
for(i=0;!x&&d.l ayers&&i<d.laye rs.length;i++)
x=MM_findObj(n, d.layers[i].document);
if(!x && d.getElementByI d) x=d.getElementB yId(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_sw apImage.argumen ts; document.MM_sr= new Array;
for(i=0;i<(a.le ngth-2);i+=3)
if ((x=MM_findObj( a[i]))!=null){docum ent.MM_sr[j++]=x; if(!x.oSrc)
x.oSrc=x.src; x.src=a[i+2];}
}
function MM_openBrWindow (theURL,winName ,features) { //v2.0
window.open(the URL,winName,fea tures);
}
function openWindow2(win dowName,windowP ath,winWidth,wi nHeight)
{
NewWindow = window.open(win dowPath,windowN ame,'toolbar=no ,width=' +
winWidth + ',height=' + winHeight +
',directories=n o,status=no,scr ollbars=no,resi ze=no,menubar=n o')
NewWindow.focus ()
}
function openWindow3(win dowName,windowP ath,winWidth,wi nHeight)
{
NewWindow = window.open(win dowPath,windowN ame,'toolbar=no ,width=' +
winWidth + ',height=' + winHeight +
',directories=n o,status=no,scr ollbars=no,resi ze=no,menubar=n o')
NewWindow.focus ()
}
function openWindow4(win dowName,windowP ath,winWidth,wi nHeight)
{
NewWindow = window.open(win dowPath,windowN ame,'toolbar=no ,width=' +
winWidth + ',height=' + winHeight +
',directories=n o,status=no,scr ollbars=no,resi ze=no,menubar=n o')
NewWindow.focus ()
}
function openWindow_10(w indowName,windo wPath,winWidth, winHeight)
{
NewWindow = window.open(win dowPath,windowN ame,'toolbar=no ,width=' +
winWidth + ',height=' + winHeight +
',directories=n o,status=no,scr ollbars=no,resi ze=no,menubar=n o')
NewWindow.focus ()
}
function openWindow_gall ery(windowName, windowPath,winW idth,winHeight)
{
NewWindow = window.open(win dowPath,windowN ame,'toolbar=no ,width=' +
winWidth + ',height=' + winHeight +
',directories=n o,status=no,scr ollbars=no,resi ze=no,menubar=n o')
NewWindow.focus ()
}

//window.onResize =mess();

window.onresize = resize;

function resize()
{
//alert("resize event detected!");
locateMenu("men uLogo",1,docume nt.body.clientW idth);

}

function Top()
{

var sTop = "";

sTop += "<table border=0 width=780 cellspacing=0 cellpadding=0
align=center>";
sTop += "<tr><td width=630 valign=top><obj ect classid='clsid: D27CDB6E-
AE6D-11CF-96B8-444553540000' id='obj1' codebase='http://
download.macrom edia.com/pub/shockwave/cabs/flash/
swflash.cab#ver sion=6,0,40,0' border='0' width='630'
height='95'><pa ram name='movie' value='../flash/01.swf'><param
name='quality' value='High'><p aram name=wmode value=transpare nt><embed
src='../flash/top/01.swf' pluginspage='ht tp://www.macromedia. com/go/
getflashplayer' type='applicati on/x-shockwave-flash' name='obj1'
width='780' height='95' quality='High' wmode=transpare nt></object></
td>";
sTop += "<td style='backgrou nd-image:url(../flash/newtop.jpg);wid th:
150;' OnClick=mess(); ></td>";
sTop += "</tr>";
sTop += "<tr>";
sTop += "<td colspan=2 width=780 valign=top align=right
bgcolor=#002E97 ><a href=/arabic/index.html><img border=0 src=../images/
top_logo_1.gif> </a></td>";
sTop += "</tr></table>";
locateMenu('men uLogo',1,docume nt.body.clientW idth);

/*
sTop += "<table border=0 width=780 id=table1 cellspacing=0
cellpadding=0 align=center>";
sTop += "<tr><td width=780 valign=top><obj ect classid='clsid: D27CDB6E-
AE6D-11CF-96B8-444553540000' id='obj1' codebase='http://
download.macrom edia.com/pub/shockwave/cabs/flash/
swflash.cab#ver sion=6,0,40,0' border='0' width='780'
height='95'><pa ram name='movie' value='/arabic/flash/top.swf'><param
name='quality' value='High'><p aram name=wmode value=transpare nt><embed
src='/arabic/flash/top.swf' pluginspage='ht tp://www.macromedia. com/go/
getflashplayer' type='applicati on/x-shockwave-flash' name='obj1'
width='780' height='95' quality='High' wmode=transpare nt></object></
td>";
sTop += "</tr>";
sTop += "<tr>";
sTop += "<td width=780 valign=top align=right bgcolor=#002E97 ><a href=/
arabic/index.html><img border=0 src=../images/top_logo_1.gif> </a></
td>";
sTop += "</tr></table>";
*/
sTop += "<table border=0 id=TopLinks cellspacing=0 cellpadding=0
class=TopLinks align=center><t r>";
sTop += "<td width=65><img border=0 src=../images/left_top_crv_1. gif></
td>";
sTop += "<td class=TopLinksC ell><!--img border=0 width=105 height=28
src=../images/top_link_3.gif onclick=window. location='/arabic/
england_Summary/League_news/index.html' style='cursor:h and;'--></td>";
sTop += "<td class=TopLinksC ell><img border=0 width=105 height=28
src=../images/F1_LINK1.gif onclick=window. location='/Formula1/news/
Formula_1__inde x.asp' style='cursor:h and;'></td>";
sTop += "<td class=TopLinksC ell><img border=0 width=105 height=28
src=../images/top_link_1.gif onclick=window. location='/arabic/
Portugoal_Summa ry/League_news/index.html' style='cursor:h and;'></td>";
sTop += "<td class=TopLinksC ell><img border=0 width=105 height=28
src=../images/top_link_2.gif onclick=window. location='/arabic/
Calcio_Summary/League_news/index.html' style='cursor:h and;'></td>";
sTop += "<td class=TopLinksC ell><img border=0 width=105 height=28
src=../images/top_link_4.gif onclick=window. location='/arabic/
La_Liga_Summary/League_news/index.html' style='cursor:h and;'></td>";
sTop += "<td class=TopLinksC ell><img border=0 width=105 height=28
src=../images/top_link_5.gif onclick=window. location='/arabic/
Qatar_Summary/League_news/index.html' style='cursor:h and;'></td>";
sTop += "<td class=TopLinksC ell><table border=0 cellpadding=0
cellspacing=0 width=185><tr>< td><img border=0 src=../images/
top_logo_2_3.gi f></td><td><a href=/arabic/index.html><img border=0
src=../images/top_logo_2_2.gi f border=0></a></td><td><img border=0
src=../images/top_logo_2_1.gi f></td></tr></table></td>";

//<img border=0 src=../images/top_logo_2.gif>
sTop += "</tr></table>";

sTop += "<table border=0 width=780 id=table1 cellspacing=0
cellpadding=0 align=center><t r>";
sTop += "<td width=64 valign=top><img border=0 src=../images/
left_top_crv_2. gif></td>";
sTop += "<td width=716 valign=top background=../images/top_line_2.gif
align=right><a href='/arabic/index.html'><im g border=0 src=../images/
top_logo_3.gif> </a></td>";
sTop += "</tr></table>";

document.write( sTop);

}

function Top2()
{
var sTop = "";

sTop += "<table border=0 width=780 cellspacing=0 cellpadding=0
align=center>";
sTop += "<tr><td width=630 valign=top><obj ect classid='clsid: D27CDB6E-
AE6D-11CF-96B8-444553540000' id='obj1' codebase='http://
download.macrom edia.com/pub/shockwave/cabs/flash/
swflash.cab#ver sion=6,0,40,0' border='0' width='630'
height='95'><pa ram name='movie' value='../flash/top/01.swf'><param
name='quality' value='High'><p aram name=wmode value=transpare nt><embed
src='../flash/top/01.swf' pluginspage='ht tp://www.macromedia. com/go/
getflashplayer' type='applicati on/x-shockwave-flash' name='obj1'
width='780' height='95' quality='High' wmode=transpare nt></object></
td>";
sTop += "<td style='backgrou nd-image:url(../flash/newtop.jpg);wid th:
150;' OnClick=mess(); ></td>";
sTop += "</tr>";
sTop += "<tr>";
sTop += "<td colspan=2 width=780 valign=top align=right
bgcolor=#002E97 ><a href=/arabic/index.html><img border=0 src=../images/
top_logo_1.gif> </a></td>";
sTop += "</tr></table>";
locateMenu('men uLogo',1,docume nt.body.clientW idth);

/*
sTop += "<table border=0 width=780 id=table1 cellspacing=0
cellpadding=0 align=center><t r>";
sTop += "<td width=780 valign=top><!--img border=0 src=../images/
top_img.jpg--><object classid='clsid: D27CDB6E-
AE6D-11CF-96B8-444553540000' id='obj1' codebase='http://
download.macrom edia.com/pub/shockwave/cabs/flash/
swflash.cab#ver sion=6,0,40,0' border='0' width='780'
height='95'><pa ram name='movie' value='/arabic/flash/top.swf'><param
name='quality' value='High'><p aram name=wmode value=transpare nt><embed
src='/arabic/flash/top.swf' pluginspage='ht tp://www.macromedia. com/go/
getflashplayer' type='applicati on/x-shockwave-flash' name='obj1'
width='780' height='95' quality='High' wmode=transpare nt></object></
td>";
sTop += "</tr>";
sTop += "<tr>";
sTop += "<td width=780 valign=top align=right bgcolor=#002E97 ><img
border=0 src=../images/top_logo_1.gif> </td>";
sTop += "</tr></table>";
*/

sTop += "<table border=0 id=TopLinks cellspacing=0 cellpadding=0
class=TopLinks align=center><t r>";
sTop += "<td width=65><img border=0 src=../images/left_top_crv_1. gif></
td>";

if(linkline==6)
{
sTop += "<td class=TopLinksC ell style=padding-left:5;><img border=0
width=105 height=28 src=../images/F1_LINK2.gif></td>";
}
else
{
sTop += "<td class=TopLinksC ell style=padding-left:5;><img border=0
width=105 height=28 src=../images/F1_LINK1.gif
onclick=window. location='/Formula1/news/Formula_1__inde x.asp'
style='cursor:h and;'></td>";
}
if(linkline==4)
{
sTop += "<td class=TopLinksC ell><img border=0 width=105 height=28
src=../images/top_link_3_.gif ></td>";
}
else
{
sTop += "<td class=TopLinksC ell><!--img border=0 width=105 height=28
src=../images/top_link_3.gif onclick=window. location='/arabic/
england_Summary/League_news/index.html' style='cursor:h and;'--></td>";
}

if(linkline==3)
{
sTop += "<td class=TopLinksC ell><img border=0 width=105 height=28
src=../images/top_link_1_.gif ></td>";
}
else
{
sTop += "<td class=TopLinksC ell><img border=0 width=105 height=28
src=../images/top_link_1.gif onclick=window. location='/arabic/
Portugoal_Summa ry/League_news/index.html' style='cursor:h and;'></
td>";
}

if(linkline==2)
{
sTop += "<td class=TopLinksC ell><img border=0 width=105 height=28
src=../images/top_link_2_.gif ></td>";
}
else
{
sTop += "<td class=TopLinksC ell><img border=0 width=105 height=28
src=../images/top_link_2.gif onclick=window. location='/arabic/
Calcio_Summary/League_news/index.html' style='cursor:h and;'></td>";
}

if(linkline==1)
{
sTop += "<td class=TopLinksC ell><img border=0 width=105 height=28
src=../images/top_link_4_.gif ></td>";
}
else
{
sTop += "<td class=TopLinksC ell><img border=0 width=105 height=28
src=../images/top_link_4.gif onclick=window. location='/arabic/
La_Liga_Summary/League_news/index.html' style='cursor:h and;'></td>";
}

if(linkline==5)
{
sTop += "<td class=TopLinksC ell><img border=0 width=105 height=28
src=../images/top_link_5_.gif ></td>";

}
else
{
sTop += "<td class=TopLinksC ell><img border=0 width=105 height=28
src=../images/top_link_5.gif onclick=window. location='/arabic/
Qatar_Summary/League_news/index.html' style='cursor:h and;'></td>";

}

sTop += "<td class=TopLinksC ell><table border=0 cellpadding=0
cellspacing=0 width=185><tr>< td><img border=0 src=../images/
top_logo_2_3.gi f></td><td><a href=/arabic/index.html><img border=0
src=../images/top_logo_2_2.gi f border=0></a></td><td><img border=0
src=../images/top_logo_2_1.gi f></td></tr></table></td>";
sTop += "</tr></table>";

sTop += "<table border=0 width=780 id=table1 cellspacing=0
cellpadding=0 align=center><t r>";
sTop += "<td width=64 valign=top><img border=0 src=../images/
left_top_crv_2. gif></td>";
sTop += "<td width=716 valign=top background=../images/top_line_2.gif
align=right><a href='/arabic/index.html'><im g border=0 src=../images/
top_logo_3.gif> </a></td>";
sTop += "</tr></table>";

document.write( sTop);

}

function openWindow_1(wi ndowName,window Path,winWidth,w inHeight)
{
NewWindow = window.open(win dowPath,windowN ame,'toolbar=no ,width=' +
winWidth + ',height=' + winHeight +
',directories=n o,status=no,scr ollbars=yes,res ize=no,menubar= no,top=14
0px,left=150px' )
NewWindow.focus ()
}

var d = new Date();
var curr_day = d.getDay();
var curr_date = d.getDate();
var s=d.getSeconds ();
var n=new String(curr_day )+new String(curr_dat e)
+new String(s);

function Left()
{
var sLeft = "";

sLeft += "<table border=0 width=170 id=table2 cellspacing=0
cellpadding=0>" ;

sLeft += "<tr><td>";
sLeft += "<object classid='clsid: D27CDB6E-AE6D-11-96B8-444553540000'
id='obj1' codebase='http://download.macrom edia.com/pub/shockwave/cabs/
flash/swflash.cab#ver sion=6,0,40,0' border='0' width='170'
height='90'><pa ram name='movie' value='../flash/HOW.swf'><param
name='quality' value='High'><e mbed src='../flash/HOW.swf'
pluginspage='ht tp://www.macromedia. com/go/getflashplayer'
type='applicati on/x-shockwave-flash' name='obj1' ></object>";

sLeft += "</td></tr>";

sLeft += "<tr><td style=padding-top:5px;>";
sLeft += "<object classid='clsid: D27CDB6E-AE6D-11CF-96B8-444553540000'
id='obj1' codebase='http://download.macrom edia.com/pub/shockwave/cabs/
flash/swflash.cab#ver sion=6,0,40,0' border='0' width='170'
height='157'><p aram name='movie' value='../flash/outside1.swf'>< param
name='quality' value='High'><e mbed src='../flash/outside1.swf'
pluginspage='ht tp://www.macromedia. com/go/getflashplayer'
type='applicati on/x-shockwave-flash' name='obj1' ></object>";
sLeft += "</td></tr>";


//sLeft += "<tr><td style=padding-top:8px;padding-bottom:2px;>";
// sLeft += "<object classid='clsid: D27CDB6E-
AE6D-11CF-96B8-444553540000' id='obj1' codebase='http://
download.macrom edia.com/pub/shockwave/cabs/flash/
swflash.cab#ver sion=6,0,40,0' border='0' width='170'
height='110'><p aram name='movie' value='/arabic/fiba/flash/
link2.swf'><par am name='quality' value='High'><e mbed src='/arabic/fiba/
flash/link2.swf' pluginspage='ht tp://www.macromedia. com/go/
getflashplayer' type='applicati on/x-shockwave-flash' name='obj1' ></
object>";
//sLeft += "</td></tr>";
// program
sLeft += "<tr><td style=padding-top:5;>";
sLeft += "<iframe name='I1' WIDTH='170' height='163' marginwidth='1'
marginheight='1 ' scrolling='no' border='0' frameborder='0' src='.../
LIVE/frame6.html'></iframe>";
sLeft += "</td></tr>";

/*

//live sccore services
sLeft += "<tr><td style=padding-top:10;>";
sLeft += "<iframe name='I1' WIDTH='170' height='180' marginwidth='1'
marginheight='1 ' scrolling='no' border='0' frameborder='0' src='/
Arabic/LIVE/frame4.html'></iframe>";
sLeft += "</td></tr>";

*/

//sLeft += "<tr><td style='padding-top:10;'>";
//sLeft += "<img onclick=window. location='/arabic/WestAsianGames/
index.html' style='cursor:h and;' src=../images/west-asia.jpg>";
//sLeft += "</td></tr>";

//sLeft += "<tr><td width=170><NOBR ><A id='gbPop_2' href=# name='gbPop|
he|gbPopDiv_2'> <img border=0 src=../images/left_adv_1.jpg id=IMG1></
A></NOBR></td>";
sLeft += "<tr>";
sLeft += "<td width=170><img border=0 src=../images/trick.gif width=1
height=5></td>";
sLeft += "</tr></table>";

//sLeft += "<table width=100% ID='Table1' cellspacing='0'
cellpadding='0' ><tr><td class=tdata></td></tr></table>";
//sLeft += "<iframe name='I1' WIDTH='170' height='157' marginwidth='1'
marginheight='1 ' scrolling='no' border='0' frameborder='0' src='/
Arabic/watchingnow/counter.asp'></iframe>";
//sLeft += "<iframe name='I1' WIDTH='170' height='157' marginwidth='1'
marginheight='1 ' scrolling='no' border='0' frameborder='0' src='/
Arabic/LIVE/frame.html'></iframe>";
sLeft += "<table border=0 cellpadding=0 cellspacing=0 >";
/*

sLeft += "<tr><td>";
sLeft += "<table border='0' width='170' id='Table4' cellspacing='0'
cellpadding='0' >";
sLeft += "<tr><td width='170'><im g border='0' src='../images/
yearender1.jpg' ></td></tr>";
//sLeft += "<tr><td class='SportsCo urtTitle' style='directio n:
rtl;background-color: #AFCEEE;width: 170px;text-align: right;font-
weight: bold;font-family: Arabic Transparent;fon t-size: 14px;color:
#002E97;padding : 3px;'>&nbsp;</td></tr>";
//sLeft += "<tr><td class='SportsCo urtTitle' style='directio n:
rtl;background-color: #AFCEEE;width: 170px;text-align: right;font-
weight: bold;font-family: Arabic Transparent;fon t-size: 14px;color:
#002E97;padding : 3px;height:6;'> </td></tr>";
sLeft += "<tr><td width='170' bgcolor=#AFCEEE align=center
style='border:s olid #000080 1px;'><object classid='clsid: D27CDB6E-
AE6D-11CF-96B8-444553540000' id='obj1' codebase='http://
download.macrom edia.com/pub/shockwave/cabs/flash/
swflash.cab#ver sion=6,0,40,0' border='0' width='168'
height='76'><pa ram name='movie' value='/arabic/YearEnder/flash/
YearEnder.swf'> <param name='quality' value='High'><e mbed src='/arabic/
YearEnder/flash/YearEnder.swf' pluginspage='ht tp://www.macromedia. com/
go/getflashplayer' type='applicati on/x-shockwave-flash' name='obj1'
width='160' height='160'></object></td></tr>";
//sLeft += "<tr><td class='SportsCo urtDesc' style='directio n:
rtl;background-color: #AFCEEE;width: 170px;text-align: justify;font-
weight: bold;font-family: Arabic Transparent;fon t-size: 14px;color:
#002E97;padding : 3px;'>&nbsp;</td></tr>";
sLeft += "<tr><td width='170' ><img border='0' src='/Arabic/
leftMenuIframes/images/left_crv_5.gif' ></td></tr>";
sLeft += "</table>";
sLeft += "</td></tr>";
*/

sLeft += "<tr><td style=padding-bottom:5;>";
sLeft += "<iframe name='I2' WIDTH='170' height='235' marginwidth='1'
marginheight='1 ' scrolling='no' border='0' frameborder='0' src='/
Arabic/leftMenuIframes/sportIssue.html '></iframe>";
sLeft += "</td></tr>";

//maradona program
//sLeft += "<tr><td >";
//sLeft += "<iframe name='I4' WIDTH='170' height='278' marginwidth='1'
marginheight='1 ' scrolling='no' border='0' frameborder='0' src='/
Arabic/live/prog.html'></iframe>";
//sLeft += "</td></tr>";

//sLeft += "<tr><td>";
//sLeft += "<iframe name='I3' WIDTH='170' height='70' marginwidth='1'
marginheight='1 ' scrolling='no' border='0' frameborder='0' src='/
Arabic/leftMenuIframes/ads.html'></iframe>";
//sLeft += "</td></tr>";

sLeft += "<tr><td align=center>";

sLeft += "<table border=0 cellpadding=0 cellspacing=0 >";

sLeft += "<tr><td>";
sLeft += "<img src=../images/UPCOMMING.jpg>" ;
sLeft += "</td></tr>";
sLeft += "<tr><td>";
//sLeft += "<img src=1.jpg?"+n+" >";
sLeft += "<object classid=clsid:D 27CDB6E-AE6D-11CF-96B8-444553540000
id=Object1 codebase=http://download.macrom edia.com/pub/shockwave/cabs/
flash/swflash.cab#ver sion=6,0,40,0 border=0 width='170' height='400'
VIEWASTEXT><par am name=movie value=../flash/Upcoming.swf?"+ n+" ><param
name=quality value=High><par am name=wmode value=transpare nt><embed
src=../flash/Upcoming.swf?"+ n+" pluginspage=htt p://www.macromedia. com/
go/getflashplayer type=applicatio n/x-shockwave-flash name=obj2
width='170' height='400' quality=High wmode=transpare nt></object>";
sLeft += "</td></tr>";
sLeft += "</table>";

sLeft += "</td></tr>";

sLeft += "</table>";

//sLeft += "<br>";
sLeft += "<!--div style=padding-left:3;><a href='http://
www.aljazeera.n et' target='_blank' ><img src=../images/right_adv_1.gif
></a></div-->";
document.write( sLeft);
}

function Right()
{
var sRight = "";

sRight += "<table border=0 width=170 id=table2 cellspacing=0
cellpadding=0 ><tr>";
sRight += "<td width=170><img border=0 src=../images/bground-logo.jpg
height=49 style='margin-left:0;'></td>";
sRight += "</tr></table>";

sRight += "<table border=0 width=160 id=table2 cellspacing=0
cellpadding=0 align=center style='position :relative;top:-3;'><tr>";
sRight += "<td width=160 background=../images/menu_bg_.gif
height=200>";
sRight += "<table border=0 width=150 id=table5 cellspacing=0
cellpadding=0 align=center><t r>";
sRight += "<td width=150 style=cursor:ha nd;
onmouseover=MM_ swapImage('Imag e1','','../images/menu_1_over.gif ',
1);locateMenu(' menu1',1,docume nt.body.clientW idth);
onmouseout=MM_s wapImgRestore() ;hideMenu('menu 1');><img name=Image1
id=Image1 border=0 src=../images/menu_1.gif></td>";
sRight += "</tr>";

sRight += "<tr>";
sRight += "<td width=150><A onmouseover=MM_ swapImage('Imag e2','','.../
images/menu_2_over.gif ',2);locateMenu ('menu2',
1,document.body .clientWidth);
onmouseout=MM_s wapImgRestore() ;hideMenu('menu 2'); href='#'><img
border=0 name=Image2 id=Image2 src=../images/menu_2.gif></a></td>";
sRight += "</tr>";

//
//days porgram
//
var d = new Date()
theDay=d.getDay ()

switch (theDay)
{
case 6:
//alert("Sat - 6");
sRight += "<tr>";
sRight += "<td width=150><A href='/arabic/Transmission_Sc hedule/
D1Sat.html'><im g onmouseover=MM_ swapImage('Imag e3','','../images/
menu_3_over.gif ',3); onmouseout=MM_s wapImgRestore() ; border=0
name=Image3 id=Image3 src=../images/menu_3.gif></a></td>";
sRight += "</tr>";
break
case 5:
//alert("Fri - 6");
sRight += "<tr>";
sRight += "<td width=150><A href='/arabic/Transmission_Sc hedule/
D7Fri.html'><im g onmouseover=MM_ swapImage('Imag e3','','../images/
menu_3_over.gif ',3); onmouseout=MM_s wapImgRestore() ; border=0
name=Image3 id=Image3 src=../images/menu_3.gif></a></td>";
sRight += "</tr>";
break
case 4:
//alert("Thu - 6");
sRight += "<tr>";
sRight += "<td width=150><A href='/arabic/Transmission_Sc hedule/
D6Thu.html'><im g onmouseover=MM_ swapImage('Imag e3','','../images/
menu_3_over.gif ',3); onmouseout=MM_s wapImgRestore() ; border=0
name=Image3 id=Image3 src=../images/menu_3.gif></a></td>";
sRight += "</tr>";
break
case 3:
//alert("Wed - 6");
sRight += "<tr>";
sRight += "<td width=150><A href='/arabic/Transmission_Sc hedule/
D5Wed.html'><im g onmouseover=MM_ swapImage('Imag e3','','../images/
menu_3_over.gif ',3); onmouseout=MM_s wapImgRestore() ; border=0
name=Image3 id=Image3 src=../images/menu_3.gif></a></td>";
sRight += "</tr>";
break
case 2:
//alert("Tue - 6");
sRight += "<tr>";
sRight += "<td width=150><A href='/arabic/Transmission_Sc hedule/
D4Tue.html'><im g onmouseover=MM_ swapImage('Imag e3','','../images/
menu_3_over.gif ',3); onmouseout=MM_s wapImgRestore() ; border=0
name=Image3 id=Image3 src=../images/menu_3.gif></a></td>";
sRight += "</tr>";
break
case 1:
//alert("Mon - 6");
sRight += "<tr>";
sRight += "<td width=150><A href='/arabic/Transmission_Sc hedule/
D3Mon.html'><im g onmouseover=MM_ swapImage('Imag e3','','../images/
menu_3_over.gif ',3); onmouseout=MM_s wapImgRestore() ; border=0
name=Image3 id=Image3 src=../images/menu_3.gif></a></td>";
sRight += "</tr>";
break
case 0:
//alert("Sun - 6");
sRight += "<tr>";
sRight += "<td width=150><A href='/arabic/Transmission_Sc hedule/
D2Sun.html'><im g onmouseover=MM_ swapImage('Imag e3','','../images/
menu_3_over.gif ',3); onmouseout=MM_s wapImgRestore() ; border=0
name=Image3 id=Image3 src=../images/menu_3.gif></a></td>";
sRight += "</tr>";
break
//default:
//document.write( "I'm looking forward to this weekend!")
}

//
//days porgram
//
sRight += "<tr>";
sRight += "<td width=150 onmouseover=MM_ swapImage('Imag e4','','../
images/menu_4_over.gif ',4) onmouseout=MM_s wapImgRestore() ;><a href=/
arabic/Programs_Grid/index.html><img border=0 name=Image4 id=Image4
src=../images/menu_4.gif ></a></td>";
sRight += "</tr>";

sRight += "<tr>";
sRight += "<td width=150><A onmouseover=MM_ swapImage('Imag e6','','.../
images/menu_6_over.gif ',6); onmouseout=MM_s wapImgRestore() ; href='/
arabic/Contact_Us/index.html'><im g border=0 name=Image6 id=Image6
src=../images/menu_6.gif></a></td>";
sRight += "</tr>";

sRight += "<tr>";
sRight += "<td width=150><A onmouseover=MM_ swapImage('Imag e7','','.../
images/01-over.gif',7); onmouseout=MM_s wapImgRestore() ; href='/arabic/
Job_Vacancy/index.html'><im g border=0 name=Image7 id=Image7 src=../
images/01.gif></a></td>";
sRight += "</tr>";

sRight += "</table>";
sRight += "</td>";
sRight += "</tr></table>";

sRight += "<table border='0' width='170' id='Table7' cellspacing='0'
cellpadding='0' >";
sRight += "<tr><td align='center'> ";
sRight += "<img src='../images/trik.gif' border='0' width='1'
height='6'></td></tr>";
sRight += "<tr><td align='center'> <!--a href='/Arabic/
remark.html'><i mg src='../images/remarks_button. gif' border='0'></a--
></td></tr>";
sRight += "<tr><td align='center'> <img src='../images/trik.gif'
border='0' width='1' height='6'></td></tr>";

sRight += "</table>";

//sRight += "<table border=2 width=160 id=table2 cellspacing=0
cellpadding=0 align=center>";

sRight += "<table border=0 width=160 id=table2 cellspacing=0
cellpadding=0 align=center><t r>";
sRight += "<td width=160><!--img border=0 src=../images/
poll_title.gif--></td>";
sRight += "</tr>";
sRight += "<tr>";
sRight += "<td><!-- class=PollBG-->";
sRight += "<!--table border=0 width=100% id=table3 cellspacing=0
cellpadding=0>< tr>";
sRight += "<td colspan=2 class=PollQues> كرة قدم &lt; من هو أفضل
لاعب<br>ل ام 2005؟</td>";
sRight += "</tr>";
sRight += "<tr>";
sRight += "<td colspan=2 class=PollQues> ديكو<input type=radio
value=V1 checked name=R1><br>ز دان<input type=radio value=V1 checked
name=R2><br>ر نالدينه و<input type=radio value=V1 checked name=R3></
td>";
sRight += "</tr>";
sRight += "<tr>";
sRight += "<td class=PollResul tنتائج التصويت</td><td><img border=0
src=../images/poll_button.gif ></td>";
sRight += "</tr></table-->";
sRight += "</td>";
sRight += "</tr>";
sRight += "<tr>";
sRight += "<td width=160><!--img border=0 src=../images/
right_crv_1.gif--></td>";
sRight += "</tr></table>";

sRight += "<table border=0 width=170 id=table2 cellspacing=0
cellpadding=0>< tr>";
sRight += "<td width=170 height=100>&nbs p;</td>";
sRight += "</tr>";
//if(home==1)
if(window.docum ent.title == "الصف* ة الرئيسة - الجزيرة الرياضي ")
{
//sRight += "<tr>";
//sRight += "<td width=170 align=center><a target='_blank'
href='http://www.aljazeera.n et'><img border=0 src=../images/
right_adv_1.gif ></a></td>";
//sRight += "</tr>";
}
else
{

}
//sRight += "<tr><td>";

//sRight += "</td></tr>";
sRight += "</table>";
//sRight += "<iframe name='I1' WIDTH='170' height='163'
marginwidth='1' marginheight='1 ' scrolling='no' border='0'
frameborder='0' src='/Arabic/scroll/glide-scroll-h.html'></iframe>";

document.write( sRight);

}
function Right_()
{
//aljazeera link online
//document.write( "<div align=center valign=bottom ><a href='http://
www.aljazeera.n et' target='_blank' ><img src=../images/right_adv_1.gif
border=0></a></div>");

document.write( "<table border='0' width='170' id='Table7'
cellspacing='0' cellpadding='0' >");
document.write( "<tr><td align='center'> ");
//document.write( "<iframe name='I1' WIDTH='70' height='0'
marginwidth='1' marginheight='1 ' scrolling='no' border='0'
frameborder='0' src='/formula1/live/visitors/visitor.asp'></
iframe>");
document.write( "<img src='../images/trik.gif' border='0' width='1'
height='6'></td></tr>");
document.write( "<tr><td align='center'> <a href='/Arabic/
remark.html'><i mg src='../images/remarks_button. gif' border='0'></a></
td></tr>");
document.write( "<tr><td align='center'> <img src='../images/trik.gif'
border='0' width='1' height='6'></td></tr>");
document.write( "</table>");
}

function Right_2()
{
//aljazeera link online
//document.write( "<div align=center valign=bottom ><a href='http://
www.aljazeera.n et' target='_blank' ><img src=../images/right_adv_1.gif
border=0></a></div>");

document.write( "<table border='0' width='170' id='Table7'
cellspacing='0' cellpadding='0' >");
document.write( "<tr><td align='center'> ");
//document.write( "<iframe name='I1' WIDTH='70' height='0'
marginwidth='1' marginheight='1 ' scrolling='no' border='0'
frameborder='0' src='/formula1/live/visitors/visitor.asp'></
iframe>");
document.write( "<img src='../images/trik.gif' border='0' width='1'
height='6'></td></tr>");
document.write( "<tr><td align='center'> <a
href='mailto:in **@aljazeeraspo rt.net'><img src='../images/Help.jpg'
border='0'></a></td></tr>");
document.write( "<tr><td align='center'> <img src='../images/trik.gif'
border='0' width='1' height='6'></td></tr>");
document.write( "</table>");
}

function Bottom1()
{
var sBottom = "";
sBottom += "<table border=0 width=780 cellspacing=0 cellpadding=0
align=center><t r>";
sBottom += "<td width=22 valign=top><img border=0 src=../images/
bottom_crv_2.gi f></td>";
sBottom += "<td width=569 valign=top><img src=/arbic/images/
bottom_crv_1.gi f width=0 height=0></td>";
sBottom += "<td width=19 valign=top><img border=0 src=../images/
bottom_crv_1.gi f></td>";
sBottom += "<td width=170 valign=top bgcolor=#002E97 ><img src=/arbic/
images/bottom_crv_1.gi f width=0 height=0></td>";
sBottom += "</tr>";
sBottom += "<tr>";
sBottom += "<td width=780 valign=top colspan=4 bgcolor=#002E97
height=20>&nbsp ;</td>";
sBottom += "</tr>";
sBottom += "<tr><td colspan=4><img border=0 src=../images/trick.gif
width=1 height=1></td></tr>";
sBottom += "<tr><td colspan=4 bgcolor=#9B9B9B ><img border=0 src=.../
images/trick.gif width=1 height=5></td></tr></table>";

sBottom += "<table border=0 width=780 cellspacing=0 cellpadding=0
align=center><t r>";

sBottom += "<tr><td colspan=4 height='10'></td></tr></table>";

sBottom += "<table border=0 width=780 cellspacing=0 cellpadding=0
align=center>";
sBottom += "<tr>";
sBottom += "<td width='110' style=padding-left:35;><!--b><font
face='Arabic Transparent' size='2' تصميم وتطوير </font></b--></td>";
sBottom += "<td colspan=2
class=pbottom>& nbsp;&nbsp;&nbs p;&nbsp;&nbsp;& nbsp;&nbsp;&nbs p;&nbsp;&nbsp;& nbsp;&nbsp;<a
href='/arabic/index.html'>ا صف*ة الرئيسة</a>&nbsp;|&nbsp; <a href=/
arabic/Al_jazeera_Spor ts/Al_jazeera_Spor ts_Channel/index.html>ال جزيرة
الرياضي </a>&nbsp;|&nbsp; <a href='#'>الأ خبار</a>&nbsp;|&nbsp; ";


//
//days porgram
//
var d = new Date()
theDay=d.getDay ()

switch (theDay)
{
case 6:
//alert("Sat - 6");
sBottom += "<a href='/arabic/Transmission_Sc hedule/D1Sat.html'>ج ول
البث</a>";
break
case 5:
//alert("Fri - 6");
sBottom += "<a href='/arabic/Transmission_Sc hedule/D7fri.html'>ج ول
البث</a>";
break
case 4:
//alert("Thu - 6");
sBottom += "<a href='/arabic/Transmission_Sc hedule/D6thu.html'>ج ول
البث</a>";
break
case 3:
//alert("Wed - 6");
sBottom += "<a href='/arabic/Transmission_Sc hedule/D5wed.html'>ج ول
البث</a>";
break
case 2:
//alert("Tue - 6");
sBottom += "<a href='/arabic/Transmission_Sc hedule/D4tue.html'>ج ول
البث</a>";
break
case 1:
//alert("Mon - 6");
sBottom += "<a href='/arabic/Transmission_Sc hedule/D3mon.html'>ج ول
البث</a>";
break
case 0:
//alert("Sun - 6");
sBottom += "<a href='/arabic/Transmission_Sc hedule/D2sun.html'>ج ول
البث</a>";
break
//default:
//document.write( "I'm looking forward to this weekend!")
}

//
//days porgram
//

sBottom += "&nbsp;|&nbsp;< a href='/arabic/Programs_Grid/
index.html'>ا برامج</a>&nbsp;|&nbsp; <a href='/arabic/Contact_Us/
index.html'>ا صل بنا</a></td>";

sBottom += "</tr>";
sBottom += "<tr>";
sBottom += "<td ><!--a href='http://www.afkaronline .com'
target='_blank' ><img border=0 src=../images/afkarlogo.gif></a--></
td>";
sBottom += "<td
class=pbottom1> &nbsp;&nbsp;&nb sp;&nbsp;&nbsp; &nbsp;&nbsp;&nb sp;&nbsp;
جميع ال*قوق م*فوظة <img src=../images/JSSCLogo.gif200 6م
&nbsp;&nbsp;&nb sp;&nbsp;&nbsp; &nbsp;&nbsp;&nb sp;&nbsp;</td>";
sBottom += "<td width=50></td>";
sBottom += "</tr>";
sBottom += "</table>";
document.write( sBottom);
}

function Bottom()
{
var sBottom = "";
sBottom += "<table border=0 width=780 cellspacing=0 cellpadding=0
align=center><t r>";
sBottom += "<td width=22 valign=top><img border=0 src=../images/
bottom_crv_2.gi f></td>";
sBottom += "<td width=569 valign=top><img src=/arbic/images/
bottom_crv_1.gi f width=0 height=0></td>";
sBottom += "<td width=19 valign=top><img border=0 src=../images/
bottom_crv_1.gi f></td>";
sBottom += "<td width=170 valign=top bgcolor=#002E97 ><img src=/arbic/
images/bottom_crv_1.gi f width=0 height=0></td>";
sBottom += "</tr>";
sBottom += "<tr>";
sBottom += "<td width=780 valign=top colspan=4 bgcolor=#002E97
height=20>&nbsp ;</td>";
sBottom += "</tr>";
sBottom += "<tr><td colspan=4><img border=0 src=../images/trick.gif
width=1 height=1></td></tr>";
sBottom += "<tr><td colspan=4 bgcolor=#9B9B9B ><img border=0 src=.../
images/trick.gif width=1 height=5></td></tr></table>";

sBottom += "<table border=0 width=780 cellspacing=0 cellpadding=0
align=center><t r>";

sBottom += "<tr><td colspan=4 height='10'></td></tr></table>";

sBottom += "<table border=0 width=780 cellspacing=0 cellpadding=0
align=center>";
sBottom += "<tr>";
sBottom += "<td width='110' style=padding-left:35;><!--b><font
face='Arabic Transparent' size='2' تصميم وتطوير </font></b--></td>";
sBottom += "<td colspan=2
class=pbottom>& nbsp;&nbsp;&nbs p;&nbsp;&nbsp;& nbsp;&nbsp;&nbs p;&nbsp;&nbsp;& nbsp;&nbsp;<a
href='/arabic/index.html'>ا صف*ة الرئيسة</a>&nbsp;|&nbsp; <a href=/
arabic/Al_jazeera_Spor ts/Al_jazeera_Spor ts_Channel/index.html>ال جزيرة
الرياضي </a>&nbsp;|&nbsp; <a href='#'>الأ خبار</a>&nbsp;|&nbsp; ";

//
//days porgram
//
var d = new Date()
theDay=d.getDay ()

switch (theDay)
{
case 6:
//alert("Sat - 6");
sBottom += "<a href='/arabic/Transmission_Sc hedule/D1Sat.html'>ج ول
البث</a>";
break
case 5:
//alert("Fri - 6");
sBottom += "<a href='/arabic/Transmission_Sc hedule/D7fri.html'>ج ول
البث</a>";
break
case 4:
//alert("Thu - 6");
sBottom += "<a href='/arabic/Transmission_Sc hedule/D6thu.html'>ج ول
البث</a>";
break
case 3:
//alert("Wed - 6");
sBottom += "<a href='/arabic/Transmission_Sc hedule/D5wed.html'>ج ول
البث</a>";
break
case 2:
//alert("Tue - 6");
sBottom += "<a href='/arabic/Transmission_Sc hedule/D4tue.html'>ج ول
البث</a>";
break
case 1:
//alert("Mon - 6");
sBottom += "<a href='/arabic/Transmission_Sc hedule/D3mon.html'>ج ول
البث</a>";
break
case 0:
//alert("Sun - 6");
sBottom += "<a href='/arabic/Transmission_Sc hedule/D2sun.html'>ج ول
البث</a>";
break
//default:
//document.write( "I'm looking forward to this weekend!")
}

//
//days porgram
//

sBottom += "&nbsp;|&nbsp;< a href='/arabic/Programs_Grid/
index.html'>ا برامج</a>&nbsp;|&nbsp; <a href='/arabic/Contact_Us/
index.html'>ا صل بنا</a></td>";

sBottom += "</tr>";
sBottom += "<tr>";
sBottom += "<td ><!--a href='http://www.afkaronline .com'
target='_blank' ><img border=0 src=../images/afkarlogo.gif></a--></
td>";
sBottom += "<td
class=pbottom1> &nbsp;&nbsp;&nb sp;&nbsp;&nbsp; &nbsp;&nbsp;&nb sp;&nbsp;
جميع ال*قوق م*فوظة <img src=../images/JSSCLogo.gif200 6م
&nbsp;&nbsp;&nb sp;&nbsp;&nbsp; &nbsp;&nbsp;&nb sp;&nbsp;</td>";
sBottom += "<td width=50></td>";
sBottom += "</tr>";
sBottom += "</table>";
document.write( sBottom);
}

function Marquee()
{
var sMarquee = "";

sMarquee += "<table cellspacing=0 cellpadding=0 width=410
border=0><tr>";
sMarquee += "<td width=10 rowspan=3><img border=0 src=../images/
marquee_crv_1.g if></td>";
sMarquee += "<td width=354 background=../images/
marquee_line_1. gif><img border=0 src=../images/trick.gif width=1
height=5></td>";
sMarquee += "<td width=46 rowspan=3><img border=0 src=../images/
marquee_control .gif></td>";
sMarquee += "</tr>";
sMarquee += "<tr>";
sMarquee += "<td width=354 height=21>";
//sMarquee += "<marquee id=scoller direction=right scrolldelay=160
onMouseOver=thi s.stop() onMouseOut=this .start() width=354 style=font-
size: 10px>";
//sMarquee += "<a class=marLink href=#>موند يال الشباب : تركيا تنعش
آمالها في التأهل للدور الثاني بفوزها على بنما بهدف نظيف</
a>&nbsp;&nbsp;& nbsp;&nbsp;&nbs p;&nbsp;&nbsp;& nbsp;&nbsp; <a
class=marLink href=#>المن تخب المصري يخسر بهدفين نظيفين</a>";
//sMarquee += "</marquee>";
sMarquee += "</td>";
sMarquee += "</tr>";
sMarquee += "<tr>";
sMarquee += "<td width=354 background=../images/
marquee_line_2. gif><img border=0 src=../images/trick.gif width=1
height=4></td>";
sMarquee += "</tr>";
sMarquee += "<tr>";
sMarquee += "<td width=410 background=../images/top_line_5.gif
colspan=3><img border=0 src=../images/trick.gif width=1 height=11></
td>";
sMarquee += "</tr></table>";

document.write( sMarquee);
}

//DEVELOPERS CODE
function PageQuery(q) {
if(q.length 1) this.q = q.substring(1, q.length);
else this.q = null;
this.keyValuePa irs = new Array();
if(q) {
for(var i=0; i < this.q.split("& ").length; i++) {
this.keyValuePa irs[i] = this.q.split("& ")[i];
}
}
this.getKeyValu ePairs = function() { return this.keyValuePa irs; }
this.getValue = function(s) {
for(var j=0; j < this.keyValuePa irs.length; j++) {
if(this.keyValu ePairs[j].split("=")[0] == s)
return this.keyValuePa irs[j].split("=")[1];
}
return false;
}
this.getParamet ers = function() {
var a = new Array(this.getL ength());
for(var j=0; j < this.keyValuePa irs.length; j++) {
a[j] = this.keyValuePa irs[j].split("=")[0];
}
return a;
}
this.getLength = function() { return this.keyValuePa irs.length; }
}
function queryString(key ){
var page = new PageQuery(windo w.location.sear ch);
return unescape(page.g etValue(key));
}
function displayItem(key ){
if(queryString( key)=='false')
{
//document.write( "you didn't enter a ?name=value querystring item.");
}else{
return queryString(key );
}
}

function test()
{
var names=new Array();
names[0]='جوزيف سيب بلاتر';
names[1]='لينارت يوهانسو ';
names[2]='فرانتس بيكنباو ';
names[3]='جواو هافيلان ';
names[4]='عيسى *ياتو';
names[5]='م*مد بن همام ';
names[6]='داني جوردان';
names[7]='جاك روغ';
names[8]='خوان أنطونيو ساماران ';

names[9]='سلطان بن فهد بن عبد العزيز';
names[10]='الساعد معمر القذافي' ;
names[11]='الشيخ أ*مد فهد الأ*مد الصبا*';
names[12]='العميد فاروق بوظو';
names[13]='أ*مد العفيفي' ;
names[14]='سليم شيبوب';
names[15]='أدهم شرارة';
names[16]='لامين دياك';
names[17]='روني روك';

names[18]='ارسين فينغر';
names[19]='ايمي جاكيه';
names[20]='دونا ديفارون ';
names[21]='تريسي إدواردز' ;
names[22]='برونو هينادي';
names[23]='بورا ميلو تينو فيتش';
names[24]='برونو ميتسو';
names[25]='جيرزين و';
names[26]='سيباست ان كو';

names[27]='*سن مصطفى';
names[28]='زين الدين زيدان';
names[29]='نور الدين نيبت';
names[30]='هشام القروج';
names[31]='رونالد نيو';
names[32]='كارل لويس';
names[33]='أ*مد بن *شر آل مكتوم';
names[34]='مصطفى العرفاو ';
names[35]='فرانك لوبوف';

names[36]='كرم جابر';

var html=new Array();
html[0]='1.html';
html[1]='9.html';
html[2]='14.html';
html[3]='21.html';
html[4]='20.html';
html[5]='19.html';
html[6]='22.html';
html[7]='24.html';
html[8]='23.html';
html[9]='25.html';
html[10]='26.html';
html[11]='6.html';
html[12]='5.html';
html[13]='4.html';
html[14]='27.html';
html[15]='7.html';
html[16]='28.html';
html[17]='29.html';
html[18]='12.html';
html[19]='11.html';
html[20]='10.html';
html[21]='30.html';
html[22]='8.html';
html[23]='13.html';
html[24]='33.html';
html[25]='32.html';
html[26]='31.html';
html[27]='15.html';
html[28]='2.html';
html[29]='3.html';
html[30]='18.html';
html[31]='17.html';
html[32]='16.html';
html[33]='36.html';
html[34]='35.html';
html[35]='34.html';
html[36]='37.html';
var
fullname=docume nt.hform.nameli st[document.hform. namelist.select edIndex].value;
var found,pagename= '';
found=999;

for(i=0;i<=name s.length;i++)
{
if(names[i]==fullname)
{
found=i;
break;
}
}

if(found!=999)
{
if(found>=0 && found<=8)
pagename='index 1.html';
else if(found>=8 && found<=17)
pagename='index 2.html';
else if(found>=17 && found<=26)
pagename='index 3.html';
else if(found>=26 && found<=35)
pagename='index 4.html';
else if(found==36)
pagename='index 5.html';
}
//alert(pagename) ;
if(pagename!='' )
{
window.location =pagename+'?htm l='+html[found];
}

}

function test1()
{
var names=new Array();
names[0]='إسباني ';
names[1]='الأردن' ;
names[2]='الب*ري ';
names[3]='السودا ';
names[4]='العراق' ;
names[5]='المغرب' ;
names[6]='اليمن';
names[7]='اليونا ';
names[8]='إنجلتر ';
names[9]='إيران';
names[10]='إيطالي ';
names[11]='البرتغ ل';
names[12]='تونس';
names[13]='روسيا';
names[14]='سلطنة عمان';
names[15]='سوريا';
names[16]='فلسطين' ;
names[17]='لبنان';
names[18]='ليبيا';
names[19]='مصر';
names[20]='موريتا يا';

var
fullname=docume nt.hform.nameli st[document.hform. namelist.select edIndex].value;
var found,pagename= '';
found=999;

for(i=0;i<=name s.length;i++)
{
if(names[i]==fullname)
{
found=i;
break;
}
}

if(found!=999)
{
if(found>=0 && found<=8)
pagename='index .html';
else if(found>=8 && found<=17)
pagename='index _1.html';
else if(found>=17 && found<=20)
pagename='index _2.html';

}
//alert(pagename) ;
if(pagename!='' )
{
window.location =pagename;
}
}

function test2()
{
var names=new Array();
names[0]='شبكة المراسل ن';
names[1]='سؤال في الرياضة' ;
names[2]='*صيلة الدوري الاسبان ';
names[3]='النشرة الاقتصا ية ';
names[4]='الدوري الألمان ';
names[5]='الرياض قضية ';
names[6]='الكرة العربية' ;
names[7]='ال*كم الخامس';
names[8]='*صيلة الدوري القطري';
names[9]='ملاعب ';
names[10]='ألوان الرياضة ';
names[11]='ليغا ';
names[12]='اليد';
names[13]='الأمل';
names[14]='ريبورت ج';
names[15]='مبعوث خاص';
names[16]='مشاهير غير رياضيين' ;
names[17]='في – أي – بي VIP';
names[18]='جرأة ورياضة';
names[19]='*صيلة الدوري البرتغا ي';
names[20]='ثلاثون دقيقة كالشيو';
names[21]='استودي الدوري الإسبان ';
names[22]='استودي الدوري الإيطال ';
names[23]='استودي الدوري البرتغا ي';

var html=new Array();
html[0]='pop1.html';
html[1]='pop2.html';
html[2]='pop3.html';
html[3]='pop4.html';
html[4]='pop5.html';
html[5]='pop6.html';
html[6]='pop7.html';
html[7]='pop8.html';
html[8]='pop9.html';
html[9]='pop10.html';
html[10]='pop11.html';
html[11]='pop12.html';
html[12]='pop00.html';
html[13]='pop00.html';
html[14]='pop00.html';
html[15]='pop00.html';
html[16]='pop00.html';
html[17]='pop18.html';
html[18]='pop19.html';
html[19]='pop20.html';
html[20]='pop21.html';
html[21]='pop22.html';
html[22]='pop23.html';
html[23]='pop00.html';

var
fullname=docume nt.hform.nameli st[document.hform. namelist.select edIndex].value;
var found,pagename= '';
found=999;

for(i=0;i<=name s.length;i++)
{
if(names[i]==fullname)
{
found=i;
break;
}
}

if(found!=999)
{
if(found>=0 && found<=8)
pagename='index .html';
else if(found>=8 && found<=17)
pagename='index 2.html';
else if(found>=17 && found<=23)
pagename='index 3.html';

}
//alert(pagename) ;
if(pagename!='' )
{
window.location =pagename+'?htm l='+html[found];
}

}

function generateMarquee ()
{
document.write ("<map name='FPMap0'>" );
document.write ("<area href='#'
onmouseover='wi ndow.frames.mar queeIframe.move MrqueeForward() '
shape='rect' coords='28, 10, 40, 24'>");
document.write ("<area href='#'
onmouseover='wi ndow.frames.mar queeIframe.stop Marquee()'
onmouseout='win dow.frames.marq ueeIframe.start Marquee()' shape='rect'
coords='18, 12, 26, 23'>");
document.write ("<area href='#'
onmouseover='wi ndow.frames.mar queeIframe.move MrqueeBackward( )'
shape='rect' coords='5, 11, 16, 24'>");
/*
document.write ("<area href='#' shape='rect' coords='28, 10, 40,
24'>");
document.write ("<area href='#' shape='rect' coords='18, 12, 26,
23'>");
document.write ("<area href='#' shape='rect' coords='5, 11, 16,
24'>");
*/
document.write ("</map>");
//document.write( '<iframe name="marqueeIf rame" src="/arabic/marquee/
Marquee.xml" width="354" height="22" marginwidth="1" marginheight="1 "
scrolling="no" border="0" frameborder="0" ></iframe>');
document.write( '<iframe name="marqueeIf rame" src="" width="354"
height="22" marginwidth="1" marginheight="1 " scrolling="no" border="0"
frameborder="0" ></iframe>');
//document.write( "<marquee id='scroller' onmouseover='th is.stop()'
style='FONT-SIZE: 10px' onmouseout='thi s.start()' scrollDelay='16 0'
direction='righ t' width='354'><A class=marLink href='#'>مون ديال
الشباب : تركيا تنعش آمالها في التأهل للدور الثاني بفوزها على بنما بهدف
نظيف</A>****** **<IMG src='../images/logo.gif' border=0<A
class=marLink href='#'>الم نتخب المصري يخسر بهدفين نظيفين <IMG src='../
images/logo.gif' border='0'></marquee>")
}

function scroll()
{
document.write( "<table cellspacing='0' cellpadding='0' width='410'
border='0'>");
document.write( "<tr>");
document.write( "<td width='10' rowspan='3'><im g border='0' src='../
images/m_7.gif'></td>");
document.write( "<td width='354' background='../images/
marquee_line_1. gif'><img border='0' src='../images/trick.gif'
width='1' height='5'></td>");
document.write( "<td width='46' rowspan='3'>");
//document.write( "<map name='FPMap0'>" );
//document.write( "<area href='#1' shape='rect' coords='17, 6, 29, 16'
onMouseOver=scr oller.stop() onMouseOut=scro ller.start()>") ;
//document.write( "<area href='#2' shape='rect' coords='30, 5, 37, 17'
onmouseover=scr oller.direction ='right'>");
//document.write( "<area href='#3' shape='rect' coords='6, 6, 16, 17'
onmouseover=scr oller.direction ='left'>");
//document.write( "</map>");

document.write( "<table border=0 cellpadding=0 cellspacing=0>" );
document.write( "<tr><td colspan=3><img src=../images/m_1.gif></td></
tr>");
document.write( "<tr><td><i mg style=cursor:ha nd;
onmouseover=scr oller.direction ='left' src=../images/m_5.gif></
td><td><img style=cursor:ha nd; onmouseover=scr oller.stop()
onMouseOut=scro ller.start() src=../images/m_4.gif></td><td><img
style=cursor:ha nd; onmouseover=scr oller.direction ='right' src=../
images/m_3.gif></td></tr>");
document.write( "<tr><td colspan=3><img src=../images/m_2.gif></td></
tr>");
document.write( "</table>");

//document.write( "<IMG SRC='../images/marquee_control .gif' WIDTH=46
HEIGHT=37 ALT='' usemap='#FPMap0 ' border='0'></td>");
document.write( "</tr>");

document.write( "<tr><td width='354'>");
document.write( "<marquee id='scroller' direction='righ t'
scrolldelay='16 0' onMouseOver='th is.stop()' onMouseOut='thi s.start()'
width='354' style='font-size: 10px'>");
document.write( "<a class='marLink' href='#'>مون ديال الشباب : تركيا
تنعش آمالها في التأهل للدور الثاني بفوزها على بنما بهدف نظيف</
a>&nbsp;&nbsp;& nbsp;&nbsp;&nbs p;&nbsp;&nbsp;& nbsp;<img src='images/
logo.gif' border='0'<a class='marLink' href='#'>الم نتخب المصري يخسر
بهدفين نظيفين <img src='images/logo.gif' border='0'></a>");
document.write( "</marquee>");
document.write( "</td>");
document.write( "</tr>");
document.write( "<tr>");
document.write( "<td width='354' background='../images/
marquee_line_2. gif'><img border='0' src='../images/trick.gif'
width='1' height='4'></td>");
document.write( "</tr>");
document.write( "<tr>");
document.write( "<td width='410' background='../images/top_line_5.gif'
colspan='3'><im g border='0' src='../images/trick.gif' width='1'
height='11'></td>");
document.write( "</tr>");
document.write( "</table>");
}

// cursor - \\\\\\\\\\\\\\\ \\

function af()
{
document.write( "<table border='0' cellspacing='0' cellpadding='0' >");
document.write( "<tr>");
document.write( "<td><a href='/arabic/groups/roundup.asp'><i mg border=0
src='/arabic/news/images/t1.jpg'></a></td>");
document.write( "<td><img border=0 src='/arabic/news/images/t2.jpg'></
td>");
document.write( "<td><a href='/arabic/groups/player.html'><i mg border=0
src='/arabic/news/images/t3.jpg'></a></td>");
document.write( "<td><img border=0 src='/arabic/news/images/t4.jpg'></
td>");
document.write( "<td><a href='/arabic/groups/
africacup_egypt 2006.asp'><img border=0 src='/arabic/news/images/
t5.jpg'></a></td>");
document.write( "</tr>");
document.write( "</table>");
}

Feb 25 '07 #3
On Feb 25, 9:00 pm, "althafex...@gm ail.com" <althafex...@gm ail.com>
wrote:

First of all, from the code you've posted is unclear where did you
expect the error. As I see you call from the page a few of .JS files
and you give the code of the one of them only. Please tell what
function is not loaded as expected.

When I run the code I get an error too.

I get it here

<script language="javas cript">createMe nus()

because your JS file has no createMenus()

Feb 25 '07 #4
Sorry here's the compressed code, it should work exactly when you put
under the folder C:\inetpub\wwwr oot\final and try from your localhost.
I'm sorry for troubling you, please help me to finish this headache.
FYI. The site is in arabic.

Access the page http://localhost/final/Templates/Subpage.html it will
work fine. If you make the same page as .aspx the .JS never works and
it gives error everywhere when the functions are called.

the file to download is in here www.tvsqatar.com/final.zip.

Feb 25 '07 #5
On Feb 25, 10:13 pm, "althafex...@gm ail.com" <althafex...@gm ail.com>
wrote:
Sorry here's the compressed code, it should work exactly when you put
under the folder C:\inetpub\wwwr oot\final and try from your localhost.
This is exactly what I did. As I can see there is no function
createMenus() and this is why I got the error.

In your html code you referered to 3 js-files

<script language="javas cript" src="../js/include.js"></script>
<script language="javas cript" src="../menuGen.js"></script>
<script language="javas cript" src="../menus.js"></script>

which one has this function?

and is the problem is really in this function?

What you should do in such case, when you need to debug your js

In IE go to Tools->Internet Options->Advanced->Disable Script
Debugging

clear selection, and close IE.

Open your site in IE again and now you should get a dialog with Debug
button.

If you use VS.NET, you can debug your client script there.

I'm usually prefer to use Miscrosoft Script Debugger, you can obtain a
copy of the it here:
http://www.microsoft.com/downloads/d...displaylang=en

Hope it helps

Feb 25 '07 #6

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

Similar topics

6
1588
by: Per Jrgen Vigdal | last post by:
I have a XML that I need to map. The XML goes like: <Children> <Child> <References> <External> <Reference name="filename" value="1.dat"/> <Reference name="invoicenr" value="1111111"/> <Reference name="invoicer_name" value="Bill"/>
8
4237
by: Johnny Knoxville | last post by:
I've added a favicon to my site (http://lazyape.filetap.com/) which works fine if you add the site to favourites the normal way, but I have some JavaScript code on a couple of pages with a link, which when you click it bookmarks the site (much easier). The favicon is never saved if the site is bookmarked this way. Does anyone have any ideas how to fix this?? This is the code: <script language="JavaScript">
1
2040
by: KiwiBrian | last post by:
I am using Statcounter to log site visits Upon enquiring whether the service logged visits from my site to external sites using site links I was given the following information:- "You have to provide a means to capture that information. There are 2 ways to do it: onClick event handlers placed on all the links to external pages with an appropriate javascript function which will perform the logging before redirecting to the external link or,...
1
2168
by: Vishal Saxena | last post by:
Hi, I am new to this news group, hope to get prompt solution from you, gurus of VC. Well i had a project developed in VC++ 6.0, it uses Adobe Plugin Development SDK, I am trying to upgrade my project to VC++.NET, below is the code snipplet from the project
1
2129
by: Hadi | last post by:
Hi, I have two files libqdbm.dll.a and qdbm.dll. In cygwin libqdbm.dll.a is located in /usr/local/lib while qdbm.dll is located in windows/system32. I have my test project which I compiled in cygwin using the following command: gcc -I/usr/local/include -o test test.c -L/usr/local/lib -lqdbm
1
2190
by: dasilva109 | last post by:
Hi guys I am new to C++ and need urgent help with this part of my code for a uni coursework I have to submit by Thursday //ClientData.h #ifndef CLIENTDATA_H #define CLIENTDATA_H #include <string>
2
2762
by: dasilva109 | last post by:
Hi guys I am new to C++ and need urgent help with this part of my code for a uni coursework I have to submit by Thursday //ClientData.h #ifndef CLIENTDATA_H #define CLIENTDATA_H #include <string>
2
1728
by: jhhbr549 | last post by:
I need my result to print out only in the box created with a scroll bar. It has to look like this. The Twelve Days of It by John H. Howard On the First day of It My true LOVE of Computers sent to me: A one Gig Jump drive
0
5582
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted ******************************************************** For this teeny job, please refer to: http://feeds.reddit.com/feed/8fu/?o=25
1
2544
by: Abdulla Herzallah | last post by:
Hi everyone I don't know if I am posting this to the right newsgroup but it is the closest I found, in case you think you can advice me to another newsgroup please feel free to do so. I am so desperate to get my problem solved. The issue is related to sockets and networking this is my problem short version: I need to connect to an application using a specific IP, i.e. the server I will connect to will see that specific IP address
0
9933
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
9779
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11114
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10730
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10407
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7960
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7114
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5787
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
4205
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.