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
643
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
643
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
  • K3Nv2 @ K3Nv2:
    I do wonder how dominate Germany would've been if they just enlisted Jewish people
  • BigOnYa @ BigOnYa:
    They actually enlisted Muslims, seriously, because the Muslims hates Jews, even tho it was not the supreme race. He claimed common hate, is friendship.
  • K3Nv2 @ K3Nv2:
    He could've just made them walking shields kind of a dumb ass move
  • K3Nv2 @ K3Nv2:
    https://a.co/d/3km8bqC lol cd level quality I fucking hope so
  • BigOnYa @ BigOnYa:
    So a man, wifey laying in bed, and man wants sum and rubs on her a little, she turns and says "Not tonight, I have a gyno apt in the morning." So man rolls over, but after few minutes starts rubbing her again. She says didn't you here me, no messing around, I have a gyno apt tomorrow. " Man says, "Well you don't have a dentist apt tomorrow also do you?"
  • BigOnYa @ BigOnYa:
    Damn I have 8 modded rgh3 x360 slims I've done, I need to get rid of, I figured my family members or friends would want but times have changed. Think I'm gonna stop buying them and modding. Time to Switch it up (pun intended)
  • K3Nv2 @ K3Nv2:
    Yay power outages
  • K3Nv2 @ K3Nv2:
    @BigOnYa, I'm your friend
    +1
  • BigOnYa @ BigOnYa:
    There literally no storms in your area, does it go out alot? You need to just send me your slim n ill rgh3 it free.
  • BigOnYa @ BigOnYa:
    Or grow sum balls and do it yourself, not hard. More of a pain to jailbreak a ps4 than it is the 360, other than little soldering.
  • K3Nv2 @ K3Nv2:
    Problem is my dick gets in the way
  • BigOnYa @ BigOnYa:
    Yea true, would be a pain having that on your forehead
  • K3Nv2 @ K3Nv2:
    The chicks love it
    +1
  • K3Nv2 @ K3Nv2:
    Every damn time there's a loud noise dudes car alarm goes off freaking annoying
  • BigOnYa @ BigOnYa:
    Stun gun the metal of the car (door, bumper, etc), you won't hear it again, promise.
  • realtimesave @ realtimesave:
    damn accidentally ripped my car cover just now
  • realtimesave @ realtimesave:
    happens
  • K3Nv2 @ K3Nv2:
    Or plant drugs get him evicted
  • realtimesave @ realtimesave:
    the one on my other car is all ripped up
  • K3Nv2 @ K3Nv2:
    Not your $400 car cover :ohnoes:
  • BigOnYa @ BigOnYa:
    There you go, thinking with your "dickhead"
  • realtimesave @ realtimesave:
    some day the wind will blow so hard it'll rip in half
  • K3Nv2 @ K3Nv2:
    I think in big inches
    +1
    K3Nv2 @ K3Nv2: I think in big inches +1