Mystic Software Forums

Miscellaneous => General Off-Topic => Topic started by: DarkElite on May 05, 2004, 06:37:58 PM

Title: (no subject)
Post by: DarkElite on May 05, 2004, 06:37:58 PM
does anyone know how to make a redirection in javascript or html?
Title: (no subject)
Post by: Xorlak on May 05, 2004, 08:26:04 PM
You mean a page that instantly takes you to another page?

In your <head> section, put this:

<meta http-equiv="Refresh" content="0; url=http://redirect.com">
Title: (no subject)
Post by: DarkElite on May 05, 2004, 09:40:33 PM
ok, and you can change content to the delay seconds time?

also, is there a way to put variables in order from greatest to least with just one command in JS?
Title: (no subject)
Post by: DarkElite on May 05, 2004, 09:46:03 PM
by this i mean it can also just be the greatest of them all... (im trying to make a form of talleying  Razz )
Title: (no subject)
Post by: Anonymous on May 06, 2004, 12:25:38 PM
Code: [Select]
<script LANGUAGE="VBS">
 'let's pretend the variables are all in the var() array
 dim var(99999) 'lots of room
 MsgBox CSTR(Greatest()) 'popup a box saying the greatest

 Function Greatest()
  dim a
  dim biggest
  for a = 1 to 99999
   if var(a) > biggest then biggest = var(a)
  Next a
  Greatest = biggest
 End Function
</SCRIPT>
Title: (no subject)
Post by: DarkElite on May 06, 2004, 01:15:27 PM
.....

i have no idea what that means.....and, im trying JS, im uncomfortable with VBS....what im trying to do is make a type of servey thing, and when you have one of the radios clicked, it will add a point to a certain value, and then, at the end, that highest value would be found, and depending on which value that is, it will display a different image
Title: (no subject)
Post by: AlienDude on May 13, 2004, 03:09:59 PM
I can't help you but id you go to a library you can get a couple of training books and do all sorts of stuff.  Im learning XHTML and CSS right now.  I'll keep you posted.  Ther might be something in there that may help.

Gimme a week or two to mull it over ill figure it out...
Title: (no subject)
Post by: AlienDude on June 07, 2004, 10:16:59 AM
OMG...Ill need to fish out some VB books later this week...jeesh

Sleep...bah!!