Still don't think I'm grasping HTML well....

Harsky

Madmin
OP
Member
Joined
Aug 2, 2004
Messages
5,562
Trophies
1
XP
3,851
Country
United Kingdom
Not sure if this is part of a problem but I was testing the site out in IE and I noticed that there's a little yellow box that keeps popping up (kinda like the same when you place your mouse over a picture) that says, "press SPACE or ENTER to activate control". Not sure why this keeps happening.
 

The Teej

Also known as The Tjalian
Former Staff
Joined
Jun 27, 2004
Messages
4,210
Trophies
0
Age
37
Location
England
Website
zeldapower.com
XP
653
Country
If I was you, I'd be more inclined to use a php randomiser script, like the one I use for my own signature here at GBAtemp. Here's the source, slightly modified so it's in the context of banners and not sigs
tongue.gif
All notated for your editing pleasure
smile.gif
Plus, you don't have to modify any number values or what not, just dump more links in the array and save
smile.gif


CODE
 

Psyfira

Credit: 0ml. Insert tea to continue
Member
Joined
Dec 31, 2003
Messages
3,886
Trophies
0
Location
England
XP
270
Country
You can tidy up the Javascript at the top of the page by saving the script in a separate file of it's own and just calling that file it at the top of each html page that uses it.

For example: save this part as a file called randomimage.js
CODE Â Âfunction getbanner() {
     Âbanner = new MakeArray(100);
     Ânumbanner = 4; Â// Make this the number of banners you have.

     Âbanner[0] = ""
     Â//Make more as needed

     Âvar now = new Date()
     Âvar sec = now.getSeconds()

     Âreturn banner[sec % numbanner];
 Â}

 Âfunction MakeArray(n) {
     Âthis.length = n;
     Âfor (var i = 1; i
 

The Teej

Also known as The Tjalian
Former Staff
Joined
Jun 27, 2004
Messages
4,210
Trophies
0
Age
37
Location
England
Website
zeldapower.com
XP
653
Country
Psyfira -- Hmm, you make a good point about the .js file. I totally forgot about that! Although, I've never really dabbled in JS period, so heh. And, your PHP thing might be right, but unless you're using a free website host (like Geocities or Google), most servers these days have php enables right off the bat anyway. PHP is always enabled for the end user (unless it's a REALLY basic browser), whereas Javascript might not be for security reasons or whatever. Also, I think your PC might need to be server enabled in order to run some php files properly if they're saved directly on your comp, although this is only a possibility.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • Xdqwerty @ Xdqwerty:
    sigh
  • Xdqwerty @ Xdqwerty:
    @a_username_that_isnt_cool, could you change your username?
  • Xdqwerty @ Xdqwerty:
    i guess not...
  • Xdqwerty @ Xdqwerty:
    yawn
  • Xdqwerty @ Xdqwerty:
    anybody here?
  • P @ PKNate:
    nope
  • BakerMan @ BakerMan:
    fun fact: 7 years by lukas graham, supermassive black hole by muse, and megalomania all have the same bpm
  • BakerMan @ BakerMan:
    girls just wanna have fun and renai circulation also share the same tempo as the few i said before
  • Xdqwerty @ Xdqwerty:
    @BakerMan, megalomania the live a live song?
  • BakerMan @ BakerMan:
    wait no, megalovania*
  • BakerMan @ BakerMan:
    my bad
  • K3Nv2 @ K3Nv2:
    I don't forgive you
  • BigOnYa @ BigOnYa:
    The nerve of that guy, gosh.
  • K3Nv2 @ K3Nv2:
    Yeah expecting me to forgive gtfo
  • Psionic Roshambo @ Psionic Roshambo:
    But how could the Dr have known you didn't want to be circumcized?
  • K3Nv2 @ K3Nv2:
    He didn't you just wanted your dick to be fondled
    +1
  • K3Nv2 @ K3Nv2:
    Watching dune 2 it's eh
  • Psionic Roshambo @ Psionic Roshambo:
    Dune one sucked
  • Psionic Roshambo @ Psionic Roshambo:
    The original with Patrick Stewart was Great
  • K3Nv2 @ K3Nv2:
    A sexual psycopath that love pain where have I heard that before
  • BigOnYa @ BigOnYa:
    In your high school diary?
  • K3Nv2 @ K3Nv2:
    No but your wife let's me read her diary the word psychopath comes up more than sexual
    +1
    K3Nv2 @ K3Nv2: No but your wife let's me read her diary the word psychopath comes up more than sexual +1