ice99 |
Standard Member
|
|
October-28-2009
8 Posts |
|
|
|
When i try to open url in fullscreen, my tour exit full screen mode. Maybe it possible with DHTML popup? I'm not realised it, but maybe somebody with better experience in javascript can figure it out?
Here is the link to 2 examples ()
http://www.antssoft.com/wisepopup/index.htm
1. standart HTML popup
2. DHTML popup
(right over the "Download free trial button")
produced code quite complex
javascript
<!-- Put the following code into <head> section -->
<script language="JavaScript1.2">
var ie=document.all
var dom=document.getElementById
var ns4=document.layers
var calunits=document.layers? "" : "px"
var bouncelimit
var direction="up"
var usedropin=0
function PopupMe(){
if (!dom&&!ie&&!ns4){
window.open("http://www.amoika.ru/", "", "scrollbars=1")}else{
bouncelimit=32 //(must be divisible by 8)
crossobj=(dom)?document.getElementById("dropin").style : ie? document.all.dropin : document.dropin
crossframe=(dom)?document.getElementById("cframe") : ie? document.all.cframe : document.cframe
crossframe.src="http://www.amoika.ru/"
if(usedropin){
scroll_top=(ie)? truebody().scrollTop : window.pageYOffset
crossobj.top=scroll_top-250+calunits}
crossobj.visibility=(dom||ie)? "visible" : "show"
if(usedropin){
dropstart=setInterval("dropin()",50)}}}
function dropin(){
scroll_top=(ie)? truebody().scrollTop : window.pageYOffset
if (parseInt(crossobj.top)<100+scroll_top){
crossobj.top=parseInt(crossobj.top)+40+calunits
if (parseInt(crossobj.top)>100+scroll_top){crossobj.top=100+scroll_top}}else{
clearInterval(dropstart)
bouncestart=setInterval("bouncein()",50)}}
function bouncein(){
crossobj.top=parseInt(crossobj.top)-bouncelimit+calunits
if (bouncelimit<0)
bouncelimit+=8
bouncelimit=bouncelimit*-1
if (bouncelimit==0){
clearInterval(bouncestart)}}
function dismissbox(){
if (window.bouncestart) clearInterval(bouncestart)
crossobj.visibility="hidden"}
function truebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body}
</script>
launch button
<body onload="javascript:PopupMe()">
<div id="dropin" style="position:absolute;visibility:hidden;background-color:#F5F5F5;border:solid thin #cccccc">
<div align="right" style="background-color:navy"><a title="#" onClick="dismissbox();return false"><FONT COLOR="#FFFFFF">[X]</FONT></a></div>
<IFRAME ID="cframe" SRC="" FRAMEBORDER=0></IFRAME></div>
|
|
|