View Full Version : [ REQUEST ] vB 3 pop up
Itworx4me
02-11-2004, 08:55 PM
Hello,
I am looking for a way to have a Pop Up be displayed when someone views the index page. Wanting to display Ad stuff or Announcements. I know there are scripts out there that do this but I am wanting one that is friendly with vB 3. Does anyone know how to go about doing this?
Thanks,
Itworx4me
Andreas
02-11-2004, 09:10 PM
Template FORUMHOME
<script type="text/javascript">
window.open('http://www.your-add.url','popup','');
</script>
Done.
You can also specifiy various parameters (width, height, scrollbars, etc.) with the 4th parameter.
Itworx4me
02-12-2004, 02:01 AM
What if I wanted to do text in a popup box? How would I go about doing that?
Thanks for the the ad part. I will definetly use it.
Thanks,
Itworx4me
Andreas
02-12-2004, 02:37 AM
For static text just use an HTML-file and the url in place.
For dynamic content you could do smth like
<script type="text/javascript">
var popup = window.open('', 'popup', '');
popup.document.open('text/html', 'replace');
popup.document.write('$stylevar[htmldoctype]<HTML><HEAD><TITLE>$vboptions[bbname] Greeting</TITLE></HEAD><BODY>Welcome $bbuserinfo[username]</BODY></HTML>');
popup.document.close();
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.