SMF For Free Support Forum
Signup For Free Forum
January 09, 2009, 04:38:18 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to SMF For Free. The best free SMF Host
 
   Home   Help Search Arcade Gallery Login Register  

Pages: [1]
  Print  
Author Topic: [REQUEST] POP UP  (Read 556 times)
0 Members and 1 Guest are viewing this topic.
its cool
SMF For Free Member
*
Offline Offline

Posts: 50


View Profile WWW
« on: February 11, 2008, 02:22:57 pm »

am i able to add a pop up like when they enter my site a pop up comes up ?  Huh
Logged
simply sibyl
Global Moderator
*
Online Online

Posts: 10005



View Profile WWW
« Reply #1 on: February 11, 2008, 02:27:31 pm »

am i able to add a pop up like when they enter my site a pop up comes up ?  Huh

since you can use html, and javascript in your header and footer then yes you could.  You'll have to google around and find what you need to do that .. there are no codes here currently for that.
Logged

Agent Moose Jr.
SMF For Free Sr. Member
*
Offline Offline

Posts: 443


View Profile WWW
« Reply #2 on: February 11, 2008, 02:30:25 pm »

ok here
Code:
<script type="text/javascript">
function pop_up()
{
alert("Text For The Pop Up Goes Here");
}
</script>

id very much so advise you to put it in your portal if you dont have one get one cuz if you put it in ur headers and footers everytime you change pages you will get the pop up everytime so get a portal and make a html box and if you have like other htmls like a poll or something add it to that so you dont have to make a whole new blank box with the code if it doesnt work ill check my flaws Wink
Logged

New Graphic!

Abstract
its cool
SMF For Free Member
*
Offline Offline

Posts: 50


View Profile WWW
« Reply #3 on: February 11, 2008, 02:33:33 pm »

ok here
Code:
<script type="text/javascript">
function pop_up()
{
alert("Text For The Pop Up Goes Here");
}
</script>

id very much so advise you to put it in your portal if you dont have one get one cuz if you put it in ur headers and footers everytime you change pages you will get the pop up everytime so get a portal and make a html box and if you have like other htmls like a poll or something add it to that so you dont have to make a whole new blank box with the code if it doesnt work ill check my flaws Wink
dude ty so much but uh i want to keep it so every time i change page i can see it but ty
Logged
Agent Moose Jr.
SMF For Free Sr. Member
*
Offline Offline

Posts: 443


View Profile WWW
« Reply #4 on: February 11, 2008, 02:35:21 pm »

your welcome just helping out the community one by one  Wink
Logged

New Graphic!

Abstract
its cool
SMF For Free Member
*
Offline Offline

Posts: 50


View Profile WWW
« Reply #5 on: February 11, 2008, 02:41:57 pm »

wont work gr
Logged
Agent Moose
Moderator
*****
Offline Offline

Posts: 694


Do not PM me for Code Support or Request


View Profile
« Reply #6 on: February 11, 2008, 02:46:48 pm »

Agent Moose Jr. forgot to add the ending part of the function Wink

Code:
<script type="text/javascript">
function pop_up()
{
alert("Text For The Pop Up Goes Here");
}
pop_up();
</script>
Logged



SMC Code Index - The best Code Index for all your Needs!  Includes a bunch of codes not on Support.[/cen
Agent Moose Jr.
SMF For Free Sr. Member
*
Offline Offline

Posts: 443


View Profile WWW
« Reply #7 on: February 11, 2008, 03:09:33 pm »

oops my bad lol i knew i was forgeting something thing thanks moosy
Logged

New Graphic!

Abstract
its cool
SMF For Free Member
*
Offline Offline

Posts: 50


View Profile WWW
« Reply #8 on: February 11, 2008, 03:12:18 pm »

o ok ty
Logged
Isaiahs Grandma
SMF For Free Sponsors
*
Online Online

Posts: 306



View Profile WWW
« Reply #9 on: February 14, 2008, 07:35:29 am »

Forum Url: http://ourhangout.smfforfree4.com
Is it possible to put an image in this, or to change the alert to welcome, or something like that?
Logged

simply sibyl
Global Moderator
*
Online Online

Posts: 10005



View Profile WWW
« Reply #10 on: February 14, 2008, 08:48:38 am »

Forum Url: http://ourhangout.smfforfree4.com
Is it possible to put an image in this, or to change the alert to welcome, or something like that?

you can put any text you want in an alert box.
Just replace Text For the Popup Goes Here with Welcome or whatever words you want.

I dont know how to get an image in them... 
You cannot just stick the image url in OR put in <img src="image url">  .. that wont work.
One of the coders may know of a way but I "think" the alert function won't do it
« Last Edit: February 14, 2008, 08:51:09 am by simply sibyl » Logged

LaundryLady
Global Moderator
*
Offline Offline

Posts: 3094


Internet Challenged


View Profile
« Reply #11 on: February 14, 2008, 09:09:53 am »

I tried this out and it works good, but it is annoying as heck if it pops up every time you change the page.  I would agree with the above statement of putting it in your portal.
Logged
simply sibyl
Global Moderator
*
Online Online

Posts: 10005



View Profile WWW
« Reply #12 on: February 14, 2008, 09:17:02 am »

no kidding LL.. totally agree
[humble opinion mode on]
Actually it would annoy the heck out of me to go to a forum and have to get the same popup box (actually this ones an alert) every time I go there, and then have to close it before I can do anything else.
[/humble opinion mode off]
« Last Edit: February 14, 2008, 09:24:46 am by simply sibyl » Logged

Celebrus
SMF For Free Hero
*
Offline Offline

Posts: 883


unlambda


View Profile WWW
« Reply #13 on: February 14, 2008, 09:17:43 am »

The jQuery impromptu plugin can be used to display images in there. It is also very visually gratifying.
http://trentrichardson.com/Impromptu/
Look at example 1 on there. To put an image you'd have:
Code:
$.prompt('<img src="IMAGE URL GOES HERE');
I have to go now so I can't explain much more.



The link to the plugin page is http://plugins.jquery.com/project/Impromptu
Logged


Agent Moose Jr.
SMF For Free Sr. Member
*
Offline Offline

Posts: 443


View Profile WWW
« Reply #14 on: February 14, 2008, 04:07:05 pm »

lol wow how did i just make everyone soo happy?

but yea as i said and LL agreed its kinda annoying on every page
Logged

New Graphic!

Abstract


Pages: [1]
  Print  
 
Jump to:  

cheap low cost web hosting reviews

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
ServerBeach Coupon
Page created in 0.341 seconds with 17 queries.