2011-11-08, 12:57 PM
I am trying to put up a feature to popup a message which should be removed automatically in 20 seconds.
I want to place this in the header.
So here is what I tried.
I putted this in the header:
And then I made a Global Template called "popup" which I put this content inside:
But when this is done I do not get any popup at all.
Any idea?
NOTE: It works for my custom pages? But not when I try put it into a template.
I want to place this in the header.
So here is what I tried.
I putted this in the header:
{$popup}
And then I made a Global Template called "popup" which I put this content inside:
<link href='css/google-traffic-pop.2.css' rel='stylesheet' type='text/css'/>
<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js'></script>
<script src='jscripts/gtp.min.2.js' type='text/javascript'></script>
<script language='javascript'>
jQuery(document).ready(function() {
jQuery().googleTrafficPop({
'timeout': 0,
'title': "<b>Terms of Service</b>",
'message': "To be able to use our website you must accept our Terms of Service.<br /><iframe src='tos.txt' width='400px' height='150px' style='color: black; background-color: #EBF2FC; border: 1px solid #3C0006;'><p><a href='misc.php?page=tos' background=''>Please see our Terms of Service.</a></p></iframe><br />Please note that you will get this notice whenever we have a new update in our Terms of Service.",
'url': "http://www.gamerstick.com",
'wait': 0,
'opacity': 45,
'advancedClose':false,
'closeable': false
});
});
</script>
<link type='text/css' rel='stylesheet' href='css/334858902-widget_css_2_lightbox_bundle.2.css' />
But when this is done I do not get any popup at all.
Any idea?
NOTE: It works for my custom pages? But not when I try put it into a template.