ADMINISTRATOR
- Učlanjen(a)
- 10.05.1971
- Poruka
- 54.332
REDIREKCIJA NOVI PROZOR
Mozete postaviti takodje java skriptu koja omogucava da postavite dugme i klikom na njega bicete preusmereni na zanimljiv nacin na veb stranicu koju sami postavili u vasoj java skripti.Potrebno je da u vasem head delu html fajla usnimite sledecu java skriptu.
a zatim je potrebno i u vas body deo iskopirati sledecu java skriptu......
To bi recimo izgledalo ovako.......
Mozete postaviti takodje java skriptu koja omogucava da postavite dugme i klikom na njega bicete preusmereni na zanimljiv nacin na veb stranicu koju sami postavili u vasoj java skripti.Potrebno je da u vasem head delu html fajla usnimite sledecu java skriptu.
PHP:
<SCRIPT language=JavaScript>
<!-- Begin
//Animated Window- By Rizwan Chand (rizwanchand@hotmail.com)
//Modified by DD for NS compatibility
//Visit http://www.dynamicdrive.com for this script
function expandingWindow(website) {
var windowprops='width=100,height=100,scrollbars=yes,status=yes,resizable=yes'
var heightspeed = 2; // vertical scrolling speed (higher = slower)
var widthspeed = 7; // horizontal scrolling speed (higher = slower)
var leftdist = 10; // distance to left edge of window
var topdist = 10; // distance to top edge of window
if (window.resizeTo&&navigator.userAgent.indexOf("Opera")==-1) {
var winwidth = window.screen.availWidth - leftdist;
var winheight = window.screen.availHeight - topdist;
var sizer = window.open("","","left=" + leftdist + ",top=" + topdist +","+ windowprops);
for (sizeheight = 1; sizeheight < winheight; sizeheight += heightspeed)
sizer.resizeTo("1", sizeheight);
for (sizewidth = 1; sizewidth < winwidth; sizewidth += widthspeed)
sizer.resizeTo(sizewidth, sizeheight);
sizer.location = website;
}
else
window.open(website,'mywindow');
}
// End -->
</SCRIPT>
a zatim je potrebno i u vas body deo iskopirati sledecu java skriptu......
PHP:
<!-- set up your links, either via text links or form buttons-->
<a href="javascript:expandingWindow('http://www.yahoo.com')"></a><br>
<center><form>
<input type="button" value="SerbianForum" onClick="expandingWindow('http://www.serbianforum.org')">
</form></center>
To bi recimo izgledalo ovako.......