Go Shopping Cart Site Map User Panel and Admin English Home

Home > Easypano Forum    Easypano Forum has been upgraded.

Easypano Forum


Welcome Guest Register Login Search The Forum Display List of Forum Members
 All Forums
  Tourweaver
 
Subject Topic: popup html in fullscreen. maybe DHTML? Post Reply Post New Topic
Message posted by ice99 on December-16-2009 at 6:25am
View ice99's Profile Profile   Search for other posts by ice99 Search   Quote ice99 Quote   Send Private Message Send Msg  
ice99
Standard Member
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>

If you wish to post a reply to this thread you must first Login
If you are not already registered you must first register

Forum Jump Post Reply Post New Topic
Printer Friendly Version Printable version

Powered by: - Web Wiz Guide Discussion Forums