Advertise Here

Author Topic: [Code] Make an alert come up on your forums.  (Read 3596 times)

0 Members and 1 Guest are viewing this topic.

Offline blahs

  • SMF For Free Full Member
  • *
  • Posts: 245
  • 5 out of 4 people have trouble with fractions!
    • View Profile
    • Silabsoft

  • Total Badges: 15
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
[Code] Make an alert come up on your forums.
« on: March 10, 2008, 08:11:08 pm »
Preivew at: http://thetteessttforum.smfforfree4.com/index.php
just a little code i came up with:
Code: [Select]

<SCRIPT language="JavaScript">
<!-- hide from old browsers

alert('Welcome to my Web Site!');

//-->
</SCRIPT>



Now where is says Welcome to my site! edit that to what you want the alert to say. Also where it says cool javascripts just edit that to make a title for your alert. enjoy!
You can also do the following to make multiple ones come up:
Code: [Select]


<SCRIPT language="JavaScript">
<!--
alert('Hey whats up?');
alert('Well?');
alert('Hi everyone');
alert('Whats up yall?');
//-->
</SCRIPT>
Just edit the stuff in bracets like Hey whats up?

You can evan make it with a button so when you click the button an alert comes up:

Code: [Select]
<FORM>
<INPUT type="button" value="Click here to see what I think of YOU!"
onClick="alert('You are the greatest person I have ever met!')">
</FORM>

Just edit the "Click here to see what I think of YOU!" to make what it says on the button and You are the greatest person I have ever met! to edit what is says!

I also really want to see what people say about my first code!

Last edit fixed the codes...

« Last Edit: March 15, 2008, 04:13:06 pm by blahs »

Offline blahs

  • SMF For Free Full Member
  • *
  • Posts: 245
  • 5 out of 4 people have trouble with fractions!
    • View Profile
    • Silabsoft

  • Total Badges: 15
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Code] Make an alert come up on your forums.
« Reply #1 on: March 10, 2008, 09:29:37 pm »
Btw this is the first real code i came up with i came up with this cheesy one though:

Code: [Select]
<SCRIPT TYPE="text/javascript">
<!--
document.write("<P>right now: " + new Date() + "<P>");
//-->
</SCRIPT>

Rofl....
its supposed to display the date time etc. haven't tested though...

Offline Max.

  • SMF For Free Sponsors
  • *
  • Posts: 779
    • View Profile

  • Total Badges: 17
    Badges: (View All)
    Windows User Topic Starter Combination Level 3 Level 2
Re: [Code] Make an alert come up on your forums.
« Reply #2 on: March 11, 2008, 12:55:47 am »
I hope it will be good but
You should make a preview.
I wont use it until that..
Sorry!
But when you make a preview I will use it when it is good

X

Offline Celebrus

  • SMF For Free Hero
  • *
  • Posts: 941
    • View Profile
    • Vikhyat Korrapati

  • Total Badges: 16
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Code] Make an alert come up on your forums.
« Reply #3 on: March 11, 2008, 01:41:25 am »
I don't understand why you put in head and title tags.
All you need is
Code: [Select]
<SCRIPT language="JavaScript">
<!-- // hide from old browsers
alert('Welcome to my Web Site!');
// -->
</SCRIPT>

Offline LaundryLady

  • Helpers
  • *
  • Posts: 3253
  • Internet Challenged
    • View Profile

  • Total Badges: 26
    Badges: (View All)
    Seventh year Anniversary Sixth year Anniversary Search Poll Voter Level 5
Re: [Code] Make an alert come up on your forums.
« Reply #4 on: March 11, 2008, 06:03:49 am »
Blahs, never put up a code that you have not fully tested on every browser you can find.  Always post previews if you can(remember me telling you about test sites?)  Please do not ask members to be guinea pigs for you.

You will be responsible to answer their questions to repair their sites if your codes mess them up. Since you are writing the codes, we know nothing about them.


And I Play:  Mafia-Mandemz

Offline blahs

  • SMF For Free Full Member
  • *
  • Posts: 245
  • 5 out of 4 people have trouble with fractions!
    • View Profile
    • Silabsoft

  • Total Badges: 15
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Code] Make an alert come up on your forums.
« Reply #5 on: March 11, 2008, 11:51:50 am »
Blahs, never put up a code that you have not fully tested on every browser you can find.  Always post previews if you can(remember me telling you about test sites?)  Please do not ask members to be guinea pigs for you.

You will be responsible to answer their questions to repair their sites if your codes mess them up. Since you are writing the codes, we know nothing about them.
ok ill make a preview asap!

Offline blahs

  • SMF For Free Full Member
  • *
  • Posts: 245
  • 5 out of 4 people have trouble with fractions!
    • View Profile
    • Silabsoft

  • Total Badges: 15
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Code] Make an alert come up on your forums.
« Reply #6 on: March 11, 2008, 01:04:56 pm »
ok added a test forum for this code...

Offline LaundryLady

  • Helpers
  • *
  • Posts: 3253
  • Internet Challenged
    • View Profile

  • Total Badges: 26
    Badges: (View All)
    Seventh year Anniversary Sixth year Anniversary Search Poll Voter Level 5
Re: [Code] Make an alert come up on your forums.
« Reply #7 on: March 15, 2008, 04:45:33 pm »
The test forum is for YOU  to test the codes.  Do not release them to the general public until you are sure they will work.  If they do not work on all browsers you have to tell people.  I only use codes I can trust from people that take care of business.


And I Play:  Mafia-Mandemz

Offline blahs

  • SMF For Free Full Member
  • *
  • Posts: 245
  • 5 out of 4 people have trouble with fractions!
    • View Profile
    • Silabsoft

  • Total Badges: 15
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Code] Make an alert come up on your forums.
« Reply #8 on: March 15, 2008, 04:46:49 pm »
The test forum is for YOU  to test the codes.  Do not release them to the general public until you are sure they will work.  If they do not work on all browsers you have to tell people.  I only use codes I can trust from people that take care of business.
It works its just that the test forum got messed up fro a different code that im still editing...

Offline Blade

  • SMF For Free Master
  • *
  • Posts: 1394
    • View Profile

  • Total Badges: 19
    Badges: (View All)
    Windows User Topic Starter Combination Level 4 Level 3
Re: [Code] Make an alert come up on your forums.
« Reply #9 on: March 17, 2008, 11:58:49 am »
wich doseit go in, headers or footters??

Offline Blade

  • SMF For Free Master
  • *
  • Posts: 1394
    • View Profile

  • Total Badges: 19
    Badges: (View All)
    Windows User Topic Starter Combination Level 4 Level 3
Re: [Code] Make an alert come up on your forums.
« Reply #10 on: March 17, 2008, 01:11:33 pm »
ok i dont like this, because, it comes up on wvey page youclick on...

Offline simply sibyl

  • Helpers
  • *
  • Posts: 14347
  • On hiatus
    • View Profile
    • The Tent Dwellers

  • Total Badges: 31
    Badges: (View All)
    Level 6 Poll Voter Webmaster Arcade Highscore Windows User
Re: [Code] Make an alert come up on your forums.
« Reply #11 on: March 17, 2008, 01:13:10 pm »
you could stick it in an html portal block.
still annoying (imho) as every time someone goes to your forum they get that thing and have to click it to go further.

Offline blahs

  • SMF For Free Full Member
  • *
  • Posts: 245
  • 5 out of 4 people have trouble with fractions!
    • View Profile
    • Silabsoft

  • Total Badges: 15
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Code] Make an alert come up on your forums.
« Reply #12 on: March 17, 2008, 02:38:25 pm »
you could stick it in an html portal block.
still annoying (imho) as every time someone goes to your forum they get that thing and have to click it to go further.
Thats why its bad ill edit it so it won't do that on every page rofl...

 

Related Topics

  Subject / Started by Replies Last post
14 Replies
5437 Views
Last post July 31, 2007, 12:54:47 pm
by Kimmie
3 Replies
2227 Views
Last post February 01, 2009, 10:28:44 am
by Andrew
2 Replies
1755 Views
Last post February 27, 2009, 09:44:51 am
by Qub1
8 Replies
2636 Views
Last post June 25, 2009, 04:06:26 pm
by Jish
9 Replies
5908 Views
Last post August 22, 2021, 04:51:07 am
by Rainbow