News:

Wondering if this will always be free?  See why free is better.

Main Menu

How do you make a pop up banner

Started by Homie, April 08, 2004, 10:51:02 AM

Previous topic - Next topic

Homie

Hi guys what i need help with is how do you add a POP UP Banner ON your SMF Forum when you enter it.

Thanks

Regards
Homie

Oldiesmann

Just use the window.open function described here and use the "onload" attribute of the body tag, like so:

<body onload="window.open('banner.htm','windowName','features');">
Michael Eshom
Christian Metal Fans

Homie

Thanks ill give it a try when i go home  :) tonight

B

I hate popups... no offense. :) Just something to keep in mind...I know I shy away from sites that use popups.

B


Conquer Club - Free Global Domination Game
Think the board game Risk on steroids!

Daniel D.

Why don't you use Opera or Firefox/Mozilla ? They are even better than IE...

Grudge

FYI, Oldiesmann's solution will work but will load on EVERY page load on your forum. If the pop up should only appear every so often I would recommend setting a cookie or loading it only in BoardIndex.
I'm only a half geek really...

BrandonMiller

I use an app called php adds. It was totally free and is amazingly in depth. Tracking of views and clicks on banners, options for pop up (I don't use em), and you can target regions, IP's, browsers, etc..

Very nice script, runs smooth.

It runs the banner on top of http://www.rivercityrockcrawlers.com/forum/index.php and gives reports to each of the banner people weekly (or any date I set, or they can log in to their own account and check stats at any time)

I haven't found any downfalls to using it, it's great..

Homie


B

Quote from: Daniel D. on April 08, 2004, 02:24:00 PMWhy don't you use Opera or Firefox/Mozilla ? They are even better than IE...

Yeah, I agree...and I do use them. I was thinking more along the lines of Homie's other users that only use IE. I haven't run across many people who enjoy popups... lol It was just something I thought I'd point out.

B


Conquer Club - Free Global Domination Game
Think the board game Risk on steroids!

BrandonMiller

if I can convert my .js to work in mozilla I would  :-[

My naviation simply doesn't show in mozilla but I would like to make it work somehow..






  <script language="JavaScript" src="/templates/menu.js">

</script>

  <script language="JavaScript" src="/templates/menucontext.js"></script>

  <script language="JavaScript">

showToolbar();

</script>

  <script language="JavaScript">

function UpdateIt(){

if (document.all){

document.all["MainTable"].style.top = document.body.scrollTop;

setTimeout("UpdateIt()", 200);

}

}

UpdateIt();

</script>

[Unknown]

Uhhh, yup... here's your problem:

document.all["MainTable"].style.top

That there's some proprietary MSIE code.  You expect it to work on Mozilla?

If you must support IE 4, do this: (SMF only!)

fetchById("MainTable").style.top

If you use document.all in other places, same idea.

-[Unknown]

BrandonMiller

#11
Quote from: [Unknown] on April 08, 2004, 07:03:30 PM
Uhhh, yup... here's your problem:

document.all["MainTable"].style.top

That there's some proprietary MSIE code.  You expect it to work on Mozilla?

If you must support IE 4, do this: (SMF only!)

fetchById("MainTable").style.top

If you use document.all in other places, same idea.

-[Unknown]

Is there a way to get around it outside of SMF for the rest of my site? In other words is there a way to make that work in IE 6, Opera, Firefox, Netscape, etc..

Currently it works in IE and older versions of netscape only but it is so simple. I guess I need to switch to ssi and dhtml or something

[Unknown]

Just include the script.js in the defualt theme's directory...

Themes/default/script.js

-[Unknown]

BrandonMiller

thanks I'll tinker tomorrow. In the meantime I just added a simple little link bar deal

http://www.rivercityrockcrawlers.com/forum/index.php

Advertisement: