Click to See Complete Forum and Search --> : 2 questionz!!!!


shard
03-24-2003, 05:33 PM
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!!!

shard
03-24-2003, 07:59 PM
O'! Okay! how 'bout hidin' the script for viewers? i have been to sites where when tried to view source, u see nothin' but blank note pad document! howzat done?

shard
03-24-2003, 08:22 PM
then i must be mistaken! i remeber viewin that kinda site once... anywayz... check this site out:

www.yahya3d.tk

i used ur maximized popup script in it but the origional window doesn't close... why? something has to do with dotTK banner? if so how to overcome that?

plus one personal question... do you have ActionScripting knowledge as well??? just wondering!

nkaisare
03-24-2003, 09:07 PM
Originally posted by shard
www.yahya3d.tk
I use a popup killer, so basically I cant see the site :(:(

shard
03-24-2003, 09:20 PM
well Mr. Dave... ActionScripting is the language for Flash... and i am sure u've heard of flash right?:D

JavaScript and ActionScript have many resemblences... anywayz... so what u ar saying right now is that there aint no remedy for this Dot Tk stuff?!?!? i u say that window.close only closed windows that r opened using window.open... then in this case index.htm has got the JavaScript for the popup window and is pointed to open iraq.htm... when opened directly from its origional like , i.e, http://homepages.com.pk/myahya the index.htm files pops up maximized iraq.htm and then closes itself... but when opening from www.yahya3d.tk the index.htm doesn't close... wanna explain the matterz a bit????


nkaisare! i am sorry too that u were unable to view my site... maybe u can revisit this site of my friend when i complete designing it... i'll make sure not to use the popup stuff for ur convinience!;)

shard
03-24-2003, 10:04 PM
Ah well nevamind! i get what u r talkin bout! guess i have to take a "big" tutorial on how to make a site user friendly without displaying your dexterities!

thanks! u were helpful as usual! cheers!:D :D :D