Does this random image script work?
Moderator: Thanas
- Darth Wong
- Sith Lord
- Posts: 70028
- Joined: 2002-07-03 12:25am
- Location: Toronto, Canada
- Contact:
Does this random image script work?
I'm testing a random image script on the prototype new Empire mainpage. Go to http://www.stardestroyer.net/Empire/index-new.html in order to see it. It should randomly cycle between several different recruiting images on the right-hand side of the page when you visit or refresh the page.
I'd appreciate people with different browsers testing it to see if it works, and/or offering suggestions if anyone's a JavaScript expert.
I'd appreciate people with different browsers testing it to see if it works, and/or offering suggestions if anyone's a JavaScript expert.
"It's not evil for God to do it. Or for someone to do it at God's command."- Jonathan Boyd on baby-killing
"you guys are fascinated with the use of those "rules of logic" to the extent that you don't really want to discussus anything."- GC
"I do not believe Russian Roulette is a stupid act" - Embracer of Darkness
"Viagra commercials appear to save lives" - tharkûn on US health care.
http://www.stardestroyer.net/Mike/RantMode/Blurbs.html
"you guys are fascinated with the use of those "rules of logic" to the extent that you don't really want to discussus anything."- GC
"I do not believe Russian Roulette is a stupid act" - Embracer of Darkness
"Viagra commercials appear to save lives" - tharkûn on US health care.
http://www.stardestroyer.net/Mike/RantMode/Blurbs.html
- DPDarkPrimus
- Emperor's Hand
- Posts: 18399
- Joined: 2002-11-22 11:02pm
- Location: Iowa
- Contact:
- Faram
- Bastard Operator from Hell
- Posts: 5271
- Joined: 2002-07-04 07:39am
- Location: Fighting Polarbears
Works fine for me
[img=right]http://hem.bredband.net/b217293/warsaban.gif[/img]
"Either God wants to abolish evil, and cannot; or he can, but does not want to. ... If he wants to, but cannot, he is impotent. If he can, but does not want to, he is wicked. ... If, as they say, God can abolish evil, and God really wants to do it, why is there evil in the world?" -Epicurus
Fear is the mother of all gods.
Nature does all things spontaneously, by herself, without the meddling of the gods. -Lucretius
"Either God wants to abolish evil, and cannot; or he can, but does not want to. ... If he wants to, but cannot, he is impotent. If he can, but does not want to, he is wicked. ... If, as they say, God can abolish evil, and God really wants to do it, why is there evil in the world?" -Epicurus
Fear is the mother of all gods.
Nature does all things spontaneously, by herself, without the meddling of the gods. -Lucretius
Re: Does this random image script work?
Works fine on Galeon on Linux (duh, Galeon is *nix only). However the sidebar has always bothered me- what about something more flat? And it looks too small in comparison to everything else, even on 800x600.Darth Wong wrote:I'm testing a random image script on the prototype new Empire mainpage. Go to http://www.stardestroyer.net/Empire/index-new.html in order to see it. It should randomly cycle between several different recruiting images on the right-hand side of the page when you visit or refresh the page.
I'd appreciate people with different browsers testing it to see if it works, and/or offering suggestions if anyone's a JavaScript expert.
Cleaning the source with a script to have all HTML tags in lowercase or uppercase would be nice. It's nice to see a non-computing site that actually uses valid HTML though, but you missed surrounding the javascript w/ comments which throws off the validator- looks fine in lynx and elinks(text mode browser which is much better than lynx) though.
Oh, and shouldn't randomizing pictures be done server side w/ a perl script (I don't know perl, only bash (bash could probably do it though, but it would suck, and I would need to read up on HTTP)).
ah.....the path to happiness is revision of dreams and not fulfillment... -SWPIGWANG
Sufficient Googling is indistinguishable from knowledge -somebody
Anything worth the cost of a missile, which can be located on the battlefield, will be shot at with missiles. If the US military is involved, then things, which are not worth the cost if a missile will also be shot at with missiles. -Sea Skimmer
George Bush makes freedom sound like a giant robot that breaks down a lot. -Darth Raptor
- Darth Wong
- Sith Lord
- Posts: 70028
- Joined: 2002-07-03 12:25am
- Location: Toronto, Canada
- Contact:
Re: Does this random image script work?
The sidebar? Are you talking about the buttons?Pu-239 wrote:Works fine on Galeon on Linux (duh, Galeon is *nix only). However the sidebar has always bothered me- what about something more flat? And it looks too small in comparison to everything else, even on 800x600.
Doh, I forgot to re-validate it after adding that script.Cleaning the source with a script to have all HTML tags in lowercase or uppercase would be nice. It's nice to see a non-computing site that actually uses valid HTML though, but you missed surrounding the javascript w/ comments which throws off the validator- looks fine in lynx and elinks(text mode browser which is much better than lynx) though.
Well, JavaScript is more portable. But if you know of a good perl script for doing this, let me know. This is still a work in progress, after all.Oh, and shouldn't randomizing pictures be done server side w/ a perl script (I don't know perl, only bash (bash could probably do it though, but it would suck, and I would need to read up on HTTP)).
"It's not evil for God to do it. Or for someone to do it at God's command."- Jonathan Boyd on baby-killing
"you guys are fascinated with the use of those "rules of logic" to the extent that you don't really want to discussus anything."- GC
"I do not believe Russian Roulette is a stupid act" - Embracer of Darkness
"Viagra commercials appear to save lives" - tharkûn on US health care.
http://www.stardestroyer.net/Mike/RantMode/Blurbs.html
"you guys are fascinated with the use of those "rules of logic" to the extent that you don't really want to discussus anything."- GC
"I do not believe Russian Roulette is a stupid act" - Embracer of Darkness
"Viagra commercials appear to save lives" - tharkûn on US health care.
http://www.stardestroyer.net/Mike/RantMode/Blurbs.html
- Darth Wong
- Sith Lord
- Posts: 70028
- Joined: 2002-07-03 12:25am
- Location: Toronto, Canada
- Contact:
Ha ha, it's validating cleanly again!
"It's not evil for God to do it. Or for someone to do it at God's command."- Jonathan Boyd on baby-killing
"you guys are fascinated with the use of those "rules of logic" to the extent that you don't really want to discussus anything."- GC
"I do not believe Russian Roulette is a stupid act" - Embracer of Darkness
"Viagra commercials appear to save lives" - tharkûn on US health care.
http://www.stardestroyer.net/Mike/RantMode/Blurbs.html
"you guys are fascinated with the use of those "rules of logic" to the extent that you don't really want to discussus anything."- GC
"I do not believe Russian Roulette is a stupid act" - Embracer of Darkness
"Viagra commercials appear to save lives" - tharkûn on US health care.
http://www.stardestroyer.net/Mike/RantMode/Blurbs.html
- Darth Wong
- Sith Lord
- Posts: 70028
- Joined: 2002-07-03 12:25am
- Location: Toronto, Canada
- Contact:
PHP and SSI don't play well together.kojikun wrote:that could be done using a little bit of php, i should think.
"It's not evil for God to do it. Or for someone to do it at God's command."- Jonathan Boyd on baby-killing
"you guys are fascinated with the use of those "rules of logic" to the extent that you don't really want to discussus anything."- GC
"I do not believe Russian Roulette is a stupid act" - Embracer of Darkness
"Viagra commercials appear to save lives" - tharkûn on US health care.
http://www.stardestroyer.net/Mike/RantMode/Blurbs.html
"you guys are fascinated with the use of those "rules of logic" to the extent that you don't really want to discussus anything."- GC
"I do not believe Russian Roulette is a stupid act" - Embracer of Darkness
"Viagra commercials appear to save lives" - tharkûn on US health care.
http://www.stardestroyer.net/Mike/RantMode/Blurbs.html
- Sea Skimmer
- Yankee Capitalist Air Pirate
- Posts: 37390
- Joined: 2002-07-03 11:49pm
- Location: Passchendaele City, HAB
The random script works. But the page looks pretty bad, I desperately want to run specialist Korr through the HAB Objective Organ liquidation System.
"This cult of special forces is as sensible as to form a Royal Corps of Tree Climbers and say that no soldier who does not wear its green hat with a bunch of oak leaves stuck in it should be expected to climb a tree"
— Field Marshal William Slim 1956
— Field Marshal William Slim 1956
- haas mark
- Official SD.Net Insomniac
- Posts: 16533
- Joined: 2002-09-11 04:29pm
- Location: Wouldn't you like to know?
- Contact:
Opera 7.2, works fine here (WinXP HE).
~ver
~ver
Robert-Conway.com | lunar sun | TotalEnigma.net
Hot Pants à la Zaia | BotM Lord Monkey Mod OOK!
SDNC | WG | GDC | ACPATHNTDWATGODW | GALE | ISARMA | CotK: [mew]
Formerly verilon
R.I.P. Eddie Guerrero, 09 October 1967 - 13 November 2005
Hot Pants à la Zaia | BotM Lord Monkey Mod OOK!
SDNC | WG | GDC | ACPATHNTDWATGODW | GALE | ISARMA | CotK: [mew]
Formerly verilon
R.I.P. Eddie Guerrero, 09 October 1967 - 13 November 2005
- Slartibartfast
- Emperor's Hand
- Posts: 6730
- Joined: 2002-09-10 05:35pm
- Location: Where The Sea Meets The Sky
- Contact:
- TrailerParkJawa
- Sith Acolyte
- Posts: 5850
- Joined: 2002-07-04 11:49pm
- Location: San Jose, California
A new image loaded fine every time I hit shift+refresh. Im running Opera 6.05 on Win2K sp 3.
One of the images with Darth Vader holding what appears to have a light saber in his hand has the upper part of his head cut off. If this is intentional, fine although I think it might be better we see his whole head.
One of the images with Darth Vader holding what appears to have a light saber in his hand has the upper part of his head cut off. If this is intentional, fine although I think it might be better we see his whole head.
MEMBER of the Anti-PETA Anti-Facist LEAGUE
Blech. I now shudder at the thought of the entire Mozilla Suite and it's bloatedness. Then again, my computer is pathetic enough to require a suid (and.sf.net) wrapper script to nice even galeon to -5 to reduce jerkyness, and I've abandoned Firebird (Can't wait to switch DE's once again if a major feature increase is in KDE, since the lack of easily accessible features in GNOME is driving me nuts(but the multiuser simultaneous login w/phongn wrote:Running fine under Mozilla 1.5/Linux
automatic killing of the secondary X server is nice)).
Anyways, found some random image scripts here
Also, does anyone know how to use pod2man to generate HTML perl documentation for everything instead of just a single module? I hate man page type documentation for anything more then 2 pages.
Double-post deleted - Phong
ah.....the path to happiness is revision of dreams and not fulfillment... -SWPIGWANG
Sufficient Googling is indistinguishable from knowledge -somebody
Anything worth the cost of a missile, which can be located on the battlefield, will be shot at with missiles. If the US military is involved, then things, which are not worth the cost if a missile will also be shot at with missiles. -Sea Skimmer
George Bush makes freedom sound like a giant robot that breaks down a lot. -Darth Raptor
- BlkbrryTheGreat
- BANNED
- Posts: 2658
- Joined: 2002-11-04 07:48pm
- Location: Philadelphia PA
IMO you should add "it is your destiny" to the "Join Now" picture. Other then that its working fine.
Devolution is quite as natural as evolution, and may be just as pleasing, or even a good deal more pleasing, to God. If the average man is made in God's image, then a man such as Beethoven or Aristotle is plainly superior to God, and so God may be jealous of him, and eager to see his superiority perish with his bodily frame.
-H.L. Mencken
-H.L. Mencken