Q # 1:
see this script plz
<script language="javaScript" type="text/javascript">
var Pic = new Array()
Pic[0] = '1.gif' //640x480 or less
Pic[1] = '2.gif' //800x600
Pic[2] = '3.gif' //1024x768 or more
if(screen.width<=640)
{
document.body.background = Pic[0];
}
else if(screen.width==800)
{
document.body.background = Pic[1];
}
else
{
document.body.background = Pic[2];
}
</script>
i just got this script for maximized popup by the help of mr. dave:
<head>
<script language="JavaScript" type="text/javascript">
function openWin(url) {
var popupWin=window.open(url,"Win","scrollbars=no,locationbars=no");
winW = (document.all)?screen.width:window.screen.availWidth;
winH = (document.all)?screen.height:window.screen.availHeight;
popupWin.resizeTo(winW,winH);
popupWin.moveTo(0,0);
closeMe();
}
function closeMe() {
window.opener = top;
window.close();
}
</script>
</head>
<body bgcolor="#000000" class="body" onLoad="openWin('say.htm');">
</body>
how can i modify the above picture script that the poped up window can hold in its backgrown a maximized picture as well?
Q 2
can we hide the script of a page? if yes... how??
thanx a lot for your help guyz...! these forums r a bless!!!
see this script plz
<script language="javaScript" type="text/javascript">
var Pic = new Array()
Pic[0] = '1.gif' //640x480 or less
Pic[1] = '2.gif' //800x600
Pic[2] = '3.gif' //1024x768 or more
if(screen.width<=640)
{
document.body.background = Pic[0];
}
else if(screen.width==800)
{
document.body.background = Pic[1];
}
else
{
document.body.background = Pic[2];
}
</script>
i just got this script for maximized popup by the help of mr. dave:
<head>
<script language="JavaScript" type="text/javascript">
function openWin(url) {
var popupWin=window.open(url,"Win","scrollbars=no,locationbars=no");
winW = (document.all)?screen.width:window.screen.availWidth;
winH = (document.all)?screen.height:window.screen.availHeight;
popupWin.resizeTo(winW,winH);
popupWin.moveTo(0,0);
closeMe();
}
function closeMe() {
window.opener = top;
window.close();
}
</script>
</head>
<body bgcolor="#000000" class="body" onLoad="openWin('say.htm');">
</body>
how can i modify the above picture script that the poped up window can hold in its backgrown a maximized picture as well?
Q 2
can we hide the script of a page? if yes... how??
thanx a lot for your help guyz...! these forums r a bless!!!