Forum Moderators: open

Message Too Old, No Replies

How to open a thickbox subframe when page opens

         

Superfroggy

10:01 pm on Feb 5, 2009 (gmt 0)

10+ Year Member



I am trying to create a page that automatically loads up a thickbox subpage, which then disppears on acknwoledgement, leaving behind the actual site page. Using the following code I can show a blank page which displays the content provided I click on the hyperlink:

<script src="jquery-latest.pack.js" type="text/javascript"></script>
<script src="thickbox.js" type="text/javascript"></script>
</head>
<body>
<a href="mycontent.html?height=500&width=400" class="thickbox" title="">Inline Content</a>
</body>

How can i get this to start automatically when the page loads?

Superfroggy

10:22 pm on Feb 5, 2009 (gmt 0)

10+ Year Member



Found a solution! Added following code into HEAD as folows:

<script>
$(document).ready(function(){
tb_show("","mycontent.html?height=500&width=400","");
});
</script>

Solution found here: [hobione.wordpress.com...]

Hope it helps someone else.