I have added this between <head> and </head>
and in footer
but now i have to create link for Google so whre should i have to add this url in above link. means i onclick it should show google.com in pop up
PHP Code:
<script>
// CREDITS:
// Flying popup-window: very simple configuration
// by Peter Gehrig
// Copyright (c) 2010 Peter Gehrig and Urs Dudli. All rights reserved.
// Permission given to use the script provided that this notice remains as is.
// Additional scripts can be found at http://www.fabulant.com/fast/index.html
// IMPORTANT:
// If you add this script to a script-library or script-archive
// you have to add a link to http://www.fabulant.com on the webpage
// where this script Script will be running.
var popwindow
var tisurl
var tiswidth
var tisheight
var tistopposition
var tisleftposition
var pause=20
var step=10
var marginright
var endposition
var timer
function openpopup(thisurl,thiswidth,thisheight,thistopposition) {
tisurl=thisurl
tiswidth=thiswidth
tisheight=thisheight
tistopposition=thistopposition
tisleftposition=-tiswidth
popwindow=window.open(tisurl, "newwindow", "toolbar=no,width="+tiswidth+",height="+tisheight+",top="+tistopposition+",left="+(tisleftposition)+"");
marginright=screen.width
endposition=marginright-thiswidth-10
movewindow()
}
function movewindow() {
if (tisleftposition<=endposition) {
popwindow.moveTo(tisleftposition,tistopposition)
tisleftposition+=step
timer= setTimeout("movewindow()",pause)
}
else {
clearTimeout(timer)
}
}
</script>
and in footer
PHP Code:
<A HREF="javascript:openpopup('popupwindow.html','200','200','150')">Open Pop-up</A>
Comment