ProWrestling Fans WWE TNA Forum

Go Back   ProWrestling Fans WWE TNA Forum > ProWrestlingFans > Suggestion Box

Suggestion Box Have any suggestions for PWFans? Post your thoughts here!

My JAVA and HTML suggestion
Reply
 
LinkBack Thread Tools Display Modes
Old 22 Mar 2003, 10:34 PM   #1 (permalink)
n/a
Heavyweight
 
n/a's Avatar
 
Join Date: Dec 2002
Posts: 1,282
Rep Power: 18
n/a is on a distinguished road
Default My JAVA and HTML suggestion

I feel like I am spaming up the boards so all my JAVA and HTML things will go here.

I will add more day by day so don't close this. You don't have to take them. It is just a suggestion from me. *ANYONE MAY USE THEM if you understand how to use the codes.

Last edited by n/a; 22 Mar 2003 at 10:38 PM.
n/a is offline   Reply With Quote
Old 22 Mar 2003, 10:36 PM   #2 (permalink)
n/a
Heavyweight
 
n/a's Avatar
 
Join Date: Dec 2002
Posts: 1,282
Rep Power: 18
n/a is on a distinguished road
Default

This script simply flashes (hence the name) a message on and off on your statusbar. This script probably got your attention better than the Classic Scroll but, is not used as much. The Flasher is just not as well known as the Classic Scroll.

<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
var message="The JavaScript Source is your JavaScript solution!! ";
var speed=400;
var visible=0;
function Flash() {
if (visible == 0) {
window.status=message;
visible=1;
} else {
window.status="";
visible=0;
}
setTimeout('Flash()', speed);
}
// End -->
</SCRIPT>

<BODY onLoad="Flash()">
n/a is offline   Reply With Quote
Old 22 Mar 2003, 10:40 PM   #3 (permalink)
n/a
Heavyweight
 
n/a's Avatar
 
Join Date: Dec 2002
Posts: 1,282
Rep Power: 18
n/a is on a distinguished road
Default

This script provides a nice, clean ticker for all your messages, news headlines, etc.

You need to fill in info into the JAVA codes to get your stuff on the ticker.

*DON'T FORGET TO EDIT *

<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
window.onerror = null;
var bName = navigator.appName;
var bVer = parseInt(navigator.appVersion);
var NS4 = (bName == "Netscape" && bVer >= 4);
var IE4 = (bName == "Microsoft Internet Explorer"
&& bVer >= 4);
var NS3 = (bName == "Netscape" && bVer < 4);
var IE3 = (bName == "Microsoft Internet Explorer"
&& bVer < 4);
var i=0;

// Change the position of the ticker
var top_pos = 275;
var left_pos = 200;

// Change the speed of the ticker (in milliseconds)
var time_length = 2000;

var div_name = "qiksearch";

// Enter messages for the ticker
var ticker_msg = new Array(
"Enter Message Here",
"Enter Message Here!",
"Enter Message Here",
"Enter Message Here",
"Enter Message Here" );

// Enter the URL's for the above messages
var ticker_url = new Array(
"Enter URL Here/",
"Enter URL Here/",
"Enter URL Here/",
"Enter URL Here/",
"Enter URL Here/" );

var ticker_len = ticker_msg.length;
for(var l=0; l<ticker_len; l++)
{
document.write('<div id="' + div_name + l + '" style="position:absolute; visibility:hidden; top:' + top_pos + '; left:' + left_pos + '">' + '<table bgcolor="#000000" cellspacing="0" cellpadding="1" width="400"><tr><td><table width="100%" bgcolor="#EFEFEF"><tr><td><center><a href="' + ticker_url[l] + '" class="tick">' + ticker_msg[l] + '</center></a></td>');
document.write('</tr></table></td></tr></table>' + '</div>');
}
if (NS4 || IE4) {
if (navigator.appName == "Netscape") {
layerStyleRef="layer.";
layerRef="document.layers";
styleSwitch="";
}else{
layerStyleRef="layer.style.";
layerRef="document.all";
styleSwitch=".style";
}
}
//SCROLL
function tick(){
if (NS4 || IE4) {
if(i<ticker_len)
{
if(i==0)
{
eval(layerRef+'["'+div_name+(ticker_len-1)+'"]'+
styleSwitch+'.visibility="hidden"');
}
if(i>0)
{
eval(layerRef+'["'+div_name+(i-1)+'"]'+
styleSwitch+'.visibility="hidden"');
}
eval(layerRef+'["'+div_name+i+'"]'+
styleSwitch+'.visibility="visible"');
}
if(i<ticker_len-1)
{
i++;
}
else
{
i=0;
}
setTimeout("tick()",time_length);
}
}
tick();
// End -->
</script>

Last edited by n/a; 22 Mar 2003 at 11:24 PM.
n/a is offline   Reply With Quote
Old 22 Mar 2003, 10:43 PM   #4 (permalink)
n/a
Heavyweight
 
n/a's Avatar
 
Join Date: Dec 2002
Posts: 1,282
Rep Power: 18
n/a is on a distinguished road
Default

If you don't quite have the traffic you'd like to your site, you can use your own fake page counter! Funny! Just don't get too carried away when you set the multiplier....

But I don't think you need this. Heck have it anyway's.

*ITS STUPID*

<HEAD>

<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var ran
ran = Math.round(Math.random()*50000)
function alertUser() {
alert("You are visitor number " + ran + " to this page.")
}
// End -->
</SCRIPT>

<BODY>

<CENTER>
<FORM>
<INPUT TYPE="button" VALUE="How many visits?" onClick="alertUser()">
</FORM>
</CENTER>
n/a is offline   Reply With Quote
Old 22 Mar 2003, 10:46 PM   #5 (permalink)
n/a
Heavyweight
 
n/a's Avatar
 
Join Date: Dec 2002
Posts: 1,282
Rep Power: 18
n/a is on a distinguished road
Default

If you're just looking for a quick way to tell your visitor something, use this JavaScript alert! When they put their cursor on the link, they get the message in the form of a JavaScript alert!

*Remember to edit the code*

<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
function drawAlert () {
alert ("This is an alert message that can say whatever you want!");
}
// End -->
</SCRIPT>

<BODY>

<CENTER>
<FORM>
<input type=button value="JavaScript Alert! Click Here!" onClick="drawAlert()">
</FORM>
</CENTER>
n/a is offline   Reply With Quote
Old 22 Mar 2003, 10:50 PM   #6 (permalink)
n/a
Heavyweight
 
n/a's Avatar
 
Join Date: Dec 2002
Posts: 1,282
Rep Power: 18
n/a is on a distinguished road
Default

Script plays audio greeting when user loads the page. You can record your own audio greeting and customize the greeting time and message.

* DON'T FORGET TO EDIT *

<HEAD>

<SCRIPT LANGUAGE="JavaScript" src="AudioGreeting.js">

</HEAD>

<BODY>

var d = new Date()
var h = d.getHours()

//You can record your own audio greeting and customize the greeting time and message
if (h < 12) document.write('<bgsound SRC="Goodmorning.wav" AUTOSTART=true LOOP=1>'+'Good morning!')
else if (h < 17) document.write('<bgsound SRC="Goodafternoon.wav" AUTOSTART=true LOOP=1>'+'Good afternoon!')
else if (h < 24) document.write('<bgsound SRC="Goodevening.wav" AUTOSTART=true LOOP=1>'+'Good evening!')
n/a is offline   Reply With Quote
Old 22 Mar 2003, 10:52 PM   #7 (permalink)
n/a
Heavyweight
 
n/a's Avatar
 
Join Date: Dec 2002
Posts: 1,282
Rep Power: 18
n/a is on a distinguished road
Default

This little script will continuously change the highlighted link colors (visited and unvisited links) in Internet Explorer. Very neat! Netscape - why doesn't your browser support this?

<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
function initArray() {
for (var i = 0; i < initArray.arguments.length; i++) {
this[i] = initArray.arguments[i];
}
this.length = initArray.arguments.length;
}
var colors = new initArray(
"red",
"blue",
"green",
"purple",
"black",
"tan",
"red");
delay = .5; // seconds
link = 0;
vlink = 2;
function linkDance() {
link = (link+1)%colors.length;
vlink = (vlink+1)%colors.length;
document.linkColor = colors[link];
document.vlinkColor = colors[vlink];
setTimeout("linkDance()",delay*1000);
}
linkDance();
// End -->
</script>
n/a is offline   Reply With Quote
Old 22 Mar 2003, 11:11 PM   #8 (permalink)
n/a
Heavyweight
 
n/a's Avatar
 
Join Date: Dec 2002
Posts: 1,282
Rep Power: 18
n/a is on a distinguished road
Default

Occassionally, your Web site might need to redirect minors away from adult content. This script is a VERY simple preliminary age check. Those underage are then forwarded to PWFans Forum home page.

Any idoit can get around it though.

Only 13 and above are allowed in.

<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
function getName() {
var name1 = prompt("What is your name?", "")
var age = prompt("How old are you?", "")
var email1 = prompt("What's your e-mail address?", "")
if( age <= 12) {
alert("Hey kid... You're only " + age + " and expect to stay here!! No way! " + name1 + ", get out of here! If you are at " + email1 + " , then I have your e-mail too!!")
window.open("http://forums.prowrestlingfans.com")
} else {
alert("Hello " + name1 + "! Welcome to PWF Forums! Since you are " + age + ", you are allowed to stay!! If your e-mail is " + email1 + ", you can expect some e-mail soon....")
}
}
// End -->
</SCRIPT>
n/a is offline   Reply With Quote
Old 22 Mar 2003, 11:22 PM   #9 (permalink)
n/a
Heavyweight
 
n/a's Avatar
 
Join Date: Dec 2002
Posts: 1,282
Rep Power: 18
n/a is on a distinguished road
Default

This is a cross browser javascript button ticker that ticks a number of messages on a button.You can change the direction in which the message ticks. (i.e the order in which the message
ticks).

*DON'T FORGET TO EDIT*

<BODY>

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
count=0;
var inv_button_flag=0;
if (navigator.appName=="Microsoft Internet Explorer" || (navigator.appName=="Netscape" && navigator.appVersion >= "5"))
{
document.write('<form name="qiksearch_ticker"><input type="button" name="qiksearch_ticker" onclick="goURL();" style="background:#FFFFFF; width:377; height:22; border-width:1; border-color:#000000; cursor:hand" onmouseover="this.style.background='#BDDCFF';retur n true" onmouseout="this.style.background='#FFFFFF';return true" onmousedown="this.style.background='#FFD543';retur n true"><input type="button" value="5" onclick="javascript:inv_button();inv_msg();inv_URL ();" style="width:22; height:22; font-family:webdings; background:#FFFFFF; border-left-width:0; border-right-width:1px; border-top-width:1px; border-bottom-width:1px; border-color:#000000; cursor:hand" name="inv_but" title="Tick Up Direction"></form>');
}
else
{
document.write('<form name="qiksearch_ticker"><input type="button" name="qiksearch_ticker" onclick="goURL();" width="349" border="0"><input type="button" width="50" value="up" onclick="javascript:inv_button();inv_msg();inv_URL ();" name="inv_but"></form>');
}

var ticker_speed=1;

// Ticker messages
var ticker_msg = new Array(
"Enter Message Here",
"Enter Message Here",
"Enter Message Here",
"Enter Message Here",
"Enter Message Here" ); // No comma after last ticker msg

// Ticker URLs
var ticker_url = new Array(
"Enter URL Here",
"Enter URL Here",
"Enter URL Here",
"Enter URL Here",
"Enter URL Here" ); // No comma after last ticker url

function tick()
{
if(count<ticker_msg.length)
{
this.document.qiksearch_ticker.qiksearch_ticker.va lue=ticker_msg[count];
count++;
if(count==ticker_msg.length)
{
count=0;
}
setTimeout("tick();",ticker_speed*1000);
}
}

function goURL()
{
if(this.document.qiksearch_ticker.qiksearch_ticker .value==ticker_msg[ticker_msg.length-1])
{
location.href=ticker_url[ticker_msg.length-1];
}
else
{
location.href=ticker_url[count-1];
}
}

function inv_button()
{
if (navigator.appName=="Microsoft Internet Explorer" || (navigator.appName=="Netscape" && navigator.appVersion >= "5"))
{
if (inv_button_flag==0)
{
this.document.qiksearch_ticker.inv_but.value="6";
this.document.qiksearch_ticker.inv_but.title="Tick Down Direction";
inv_button_flag=1;
}
else
{
this.document.qiksearch_ticker.inv_but.value="5";
this.document.qiksearch_ticker.inv_but.title="Tick Up Direction";
inv_button_flag=0;
}
}
else
{
if (inv_button_flag==0)
{
this.document.qiksearch_ticker.inv_but.value="Down ";
inv_button_flag=1;
}
else
{
this.document.qiksearch_ticker.inv_but.value="Up";
inv_button_flag=0;
}
}
}

function inv_msg()
{
for(var i=0;i<Math.floor(ticker_msg.length/2);i++)
{
var temp=ticker_msg[i];
ticker_msg[i]=ticker_msg[ticker_msg.length-1-i];
ticker_msg[ticker_msg.length-1-i]=temp;
}
}

function inv_URL()
{
for(var i=0;i<Math.floor(ticker_msg.length/2);i++)
{
var temp=ticker_url[i];
ticker_url[i]=ticker_url[ticker_msg.length-1-i];
ticker_url[ticker_msg.length-1-i]=temp;
}
}

tick();
// End -->
</script>
n/a is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Java Issues Dade Games & Technology 1 19 Dec 2006 10:41 PM
Java Side Effect Games & Technology 4 11 Aug 2005 04:24 PM
SC speaks out on banners, HTML, TrevelBond, and more *EXCLUSIVE DETAILS* *SPOILERS* SC Archives 21 18 Jan 2004 04:10 PM
Color chaning scroll in JAVA n/a Suggestion Box 2 22 Mar 2003 11:25 PM


All times are GMT -5. The time now is 09:17 PM.

Attribution:
Powered by Yahoo Answers



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.6.0 PL2 © 2011, Crawlability, Inc.