Auto Show

First of all, sorry if this is already on the board, but I didn't found anything so far.

There is an Auto Hide option, but I'm looking for an Auto Show code. So when you visit the site, the Tinybox shows without clicking a link.

Example: You go to www.leigeber.com and once the site is loaded the Tinybox pop up automatic. Than you first have to close it before you can continue on the site.

Thanks!
asked Apr 3, 2011 by anonymous

11 Answers

0 votes
You could do it using an onload call like the following...

window.onload = function(){TINY.box.show(params)}
answered Apr 3, 2011 by anonymous
0 votes
Thanks MastaDoom, I gonna try this  B)
answered Apr 3, 2011 by anonymous
0 votes
Mastadoom,

Your code works 99% for me. I found out the answer in the css bug topic (http://forum.leigeber.com/topic/130-css-popup-error/) you started.

In your code above the line "<link rel="stylesheet" href="style.css" />" makes a conflict with my other css file.

What Michael said in your topic solved the problem.

Add his code below to your css file:

#tinybox {position:absolute; display:none; padding:10px; background:#fff url(images/preload.gif) no-repeat 50% 50%; border:10px solid #e3e3e3; z-index:2000}

#tinymask {position:absolute; display:none; top:0; left:0; height:100%; width:100%; background:#000; z-index:1500}

#tinycontent {background:#fff}

Than keep one <link rel="stylesheet" href="style.css" /> in the <head> for all the css codes on the website.

Many thanks for your help Mastadoom and Michael
answered Apr 3, 2011 by anonymous
0 votes
Ya thanks jaap, it works now too for me.  I love it auto popping up too.

Enjoy yours too.
answered Apr 3, 2011 by anonymous
0 votes
Hello,

How I can make this auto popping up appears for one time only per month or per day for every user ?

I see it in one lyrics site that the pop up will be appears only one time every 6 days

any advice ?
answered Apr 3, 2011 by anonymous
0 votes
That is why I asked for a demo code  ;) Maybe I just write a mistake in the codes.

---------------------------------------------------

I figured out how to auto popup.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

  <title>Auto Popup</title>

  <link rel="stylesheet" href="style.css" />

  <script type="text/javascript" src="tinybox.js"></script>

  <title></title>

</head>

<body>

<p>Auto Popup should appear.

<script type="text/javascript">window.onload = function(){TINY.box.show('popup.html',1,0,0,1)};

</script></p>

</body>

</html>

answered Apr 3, 2011 by anonymous
0 votes
I don't know what your parameters are but your TINY.box.show call would not change from what you have now. If you  tried it and it didn't work for you post a link because it may be you have conflicting onload events.

---------------------------------------------------

That is why I asked for a demo code  ;) Maybe I just write a mistake in the codes.
answered Apr 3, 2011 by anonymous
0 votes
You could do it using an onload call like the following...

window.onload = function(){TINY.box.show(params)}


---------------------------------------------------

I just don't get it working :(  Do you have an example?
answered Apr 3, 2011 by anonymous
0 votes
I just don't get it working :(  Do you have an example?

---------------------------------------------------

?? Is it possible to make a short preview code?
answered Apr 3, 2011 by anonymous
0 votes
?? Is it possible to make a short preview code?

---------------------------------------------------

Looks like I never gonna get a complete answer ?  :(
answered Apr 3, 2011 by anonymous
Web Analytics