Jump to content



Welcome to KnowledgeSutra - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
- - - - -

Changing Logos...


13 replies to this topic

Poll: Do you like this script and effect?

Do you like this script and effect?

You cannot see the results of the poll until you have voted. Please login and cast your vote to see the results of this poll.
Vote Guests cannot vote

#1 googlue

    Privileged Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 512 posts
  • Location:Googland
  • Interests:Googlueing...

Posted 11 October 2004 - 04:16 PM

Many members requested me to share the script to change the logo of a site with each reload. They did so after visiting my site at http://googlue.tk which has a changing logo...

Check it out and if you like the effect, here is the script for you to use!

The script is in TWO parts.

Part 1: To be inserted just below the <body> in your html code
[br]<script language="JavaScript" type="text/javascript">[/br]<!--[br]    var ic = 6;     // Number of alternative images[/br]    var xoxo = new Array(ic);  // Array to hold filenames[br]        [/br]xoxo[0] = "image1.gif";[br]xoxo[1] = "image2.gif";[/br]xoxo[2] = "image3.gif";[br]xoxo[3] = "image4.gif";[/br]xoxo[4] = "image5.gif";[br]xoxo[5] = "image6.gif";[br][/br]function pickRandom(range) {[/br]if (Math.random)[br]return Math.round(Math.random() * (range-1));[/br]else {[br]var now = new Date();[/br]return (now.getTime() / 1000) % range;[br]}[/br]}[br]// Write out an IMG tag, using a randomly-chosen image name.[/br]var choice = pickRandom(ic);[br]// -->[/br]</script>

Please take note: You can use as many images as you want, but please tell the script how many you are going to use (in line 3) and the names of images in the list. Names can be anything. If they are in a separate folder, then name the image folder/image1.gif in the list, where folder is the name of the folder!

Part 2:Insert this where you want the images to appear.
<script LANGUAGE="JavaScript">document.writeln('<TD'+'><IMG SRC="'+xoxo[choice]+'" HEIGHT=150 WIDTH=400 BORDER=0 ><'+'/TD>');</SCRIPT>

Change the dimensions to suit your images...

It is better aesthetically if all the images are of the same size. Otherwise resizing will take place and they may look awkward!

Hope this helps...

This is exactly what I have used in my site!

Googlue!

#2 serverph

    Ancient Enigma

  • [MODERATOR]
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 1,952 posts
  • Gender:Male
  • Location:under the stars
  • Interests:http://kapamilyatalk.com<br />http://scq.serverph.uni.cc<br />http://reseller.premium.ws<br /><br />trap17 IP to access cpanel: https://64.69.46.210:2083/<br />alternative to access cpanel: gamma.xisto.com/~cpanelusername<br />Get your T17 banners here: http://www.trap17.com/banners/<br />TRAP17 Forum Search plugin: http://plugins.astahost.com/<br /><br />[url=http://reseller.premium.ws][img]http://img40.echo.cx/img40/2713/resellerfree4rd.png[/img][/url] |
  • myCENT:67.66

Posted 11 October 2004 - 04:51 PM

check also my site :D but mine is in PHP :)

The script picks a randomly selected image from a folder you specify and displays it to your visitors. It figures out which image files are available for rotation all by itself, so you're free to add or remove images as you please, without the need to edit the script or a configuration file.

GET IT HERE :)

#3 googlue

    Privileged Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 512 posts
  • Location:Googland
  • Interests:Googlueing...

Posted 11 October 2004 - 05:33 PM

lib2day, the script looks real cool!

I have not yet tested it on my server, but with the description, it seems to be more versatile!

Do you know of any nice script that can change quotes (text) like this? The ones I have/know are very complicated or do not work well.

Thank you
Googlue!

#4 serverph

    Ancient Enigma

  • [MODERATOR]
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 1,952 posts
  • Gender:Male
  • Location:under the stars
  • Interests:http://kapamilyatalk.com<br />http://scq.serverph.uni.cc<br />http://reseller.premium.ws<br /><br />trap17 IP to access cpanel: https://64.69.46.210:2083/<br />alternative to access cpanel: gamma.xisto.com/~cpanelusername<br />Get your T17 banners here: http://www.trap17.com/banners/<br />TRAP17 Forum Search plugin: http://plugins.astahost.com/<br /><br />[url=http://reseller.premium.ws][img]http://img40.echo.cx/img40/2713/resellerfree4rd.png[/img][/url] |
  • myCENT:67.66

Posted 11 October 2004 - 05:49 PM

i'm sure you'll love it, googlue :) it does not clutter up the page code, and keeps
the code safe from prying eyes. heheheü makes people wonder, "how is that
possible?" :) but for trap17 members, take a look all you want, and use it if
it fits your site requirement. :D

btw googlue, you won't have a problem there as i'm hosted also here (so we're
on the same server) :D fully-tested, with *big-grin* satisfaction, guaranteed. B)

#5 serverph

    Ancient Enigma

  • [MODERATOR]
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 1,952 posts
  • Gender:Male
  • Location:under the stars
  • Interests:http://kapamilyatalk.com<br />http://scq.serverph.uni.cc<br />http://reseller.premium.ws<br /><br />trap17 IP to access cpanel: https://64.69.46.210:2083/<br />alternative to access cpanel: gamma.xisto.com/~cpanelusername<br />Get your T17 banners here: http://www.trap17.com/banners/<br />TRAP17 Forum Search plugin: http://plugins.astahost.com/<br /><br />[url=http://reseller.premium.ws][img]http://img40.echo.cx/img40/2713/resellerfree4rd.png[/img][/url] |
  • myCENT:67.66

Posted 11 October 2004 - 05:57 PM

just saw ur query about random quote. here's one in PHP.

<?php[br][/br]//sets the variables; and sets numbers TO them.[br]$quote[1]="This is Quote #1";[/br]$quote[2]="This is Quote #2";[br]$quote[3]="This is Quote #3";[br][/br]//sets up the random[/br]$random = rand(1, count($quote));[br][/br]//displays random variable[br]echo "$quote[$random]";[br][/br]?>

you can break it down as include files i guess, first 2 sets as the include, and[/br]the execute part (echo "$quote....) on your output page. just play with the code. :)
it works just like your javascript code, wherein you add as many quotes as you
want.

#6 odomike

    Core2Q-QX6800

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPip
  • 1,095 posts
  • Gender:Male
  • Location:Nigeria
  • Interests:Website designing, Graphics designing, Computer Softwares, networking, computer games (RPGs), Education, making friends.

Posted 11 October 2004 - 10:39 PM

i kinda prefer googlue's script to yours libs2day. Your own seem to be more complicated and vast as it is in php. But, anyways, i am gonna test the two of them to see which one I am gonna use (more likely to be googlue's).

Thanks to you guys for your scripts. I will be very helpful to me.

*Heading straight to design some images with Adobe PhotoShop for the changing logo scripting*

#7 googlue

    Privileged Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 512 posts
  • Location:Googland
  • Interests:Googlueing...

Posted 12 October 2004 - 12:21 AM

lib2day, on Oct 11 2004, 11:19 PM, said:

i'm sure you'll love it, googlue :) it does not clutter up the page code, and keeps
the code safe from prying eyes. heheheü makes people wonder, "how is that
possible?" :) but for trap17 members, take a look all you want, and use it if
it fits your site requirement. :D

btw googlue, you won't have a problem there as i'm hosted also here (so we're
on the same server) :D fully-tested, with *big-grin* satisfaction, guaranteed. B)
I tried it and it works well lib2day... thank you.
Needed some fine tuning in php and that was simple... you were right.

Thanks for the quote script too...
googlue!

#8 googlue

    Privileged Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 512 posts
  • Location:Googland
  • Interests:Googlueing...

Posted 12 October 2004 - 12:36 AM

odomike, on Oct 12 2004, 04:09 AM, said:

i kinda prefer googlue's script to yours libs2day. Your own seem to be more complicated and vast as it is in php. But, anyways, i am gonna test the two of them to see which one I am gonna use (more likely to be googlue's).

Thanks to you guys for your scripts. I will be very helpful to me.

*Heading straight to design some images with Adobe PhotoShop for the changing logo scripting*
Odo, both the scripts work well, I did test lib2day's script too... and it works very well.
Which one you use depends on your needs...

But after using both, I myself am more comfortable with lib2day's :)

Thanks for your appreciation...

googlue!

#9 odomike

    Core2Q-QX6800

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPip
  • 1,095 posts
  • Gender:Male
  • Location:Nigeria
  • Interests:Website designing, Graphics designing, Computer Softwares, networking, computer games (RPGs), Education, making friends.

Posted 12 October 2004 - 04:26 AM

Thats ok googlue. I still like your script but like i said, i am gonna test the two and decide on which is better for me. I have already designed some images for the changing logos and i have already saved the script.

Thanks once again for that script and to you too libs2day.

#10 serverph

    Ancient Enigma

  • [MODERATOR]
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 1,952 posts
  • Gender:Male
  • Location:under the stars
  • Interests:http://kapamilyatalk.com<br />http://scq.serverph.uni.cc<br />http://reseller.premium.ws<br /><br />trap17 IP to access cpanel: https://64.69.46.210:2083/<br />alternative to access cpanel: gamma.xisto.com/~cpanelusername<br />Get your T17 banners here: http://www.trap17.com/banners/<br />TRAP17 Forum Search plugin: http://plugins.astahost.com/<br /><br />[url=http://reseller.premium.ws][img]http://img40.echo.cx/img40/2713/resellerfree4rd.png[/img][/url] |
  • myCENT:67.66

Posted 12 October 2004 - 05:50 AM

googlue and odomike, you're both welcome :rolleyes:

php looks like a daunting code at first. you can start with small php codes (like
the ones in this post) to get familiarized with it. then move on to larger php codes
later. small steps then bigger steps. then you'll get the hang of it, and php coding
will be a breeze :angry:




Reply to this topic


This post will need approval from a moderator before this post is shown.

  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users