Jul 27, 2008

Changing Logos... - you want this!

Free Web Hosting, No Ads > CONTRIBUTE > The Internet > Web Design
Pages: 1, 2

free web hosting

Changing Logos... - you want this!

googlue
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
CODE

<script language="JavaScript" type="text/javascript">
<!--
   var ic = 6;     // Number of alternative images
   var xoxo = new Array(ic);  // Array to hold filenames
       
xoxo[0] = "image1.gif";
xoxo[1] = "image2.gif";
xoxo[2] = "image3.gif";
xoxo[3] = "image4.gif";
xoxo[4] = "image5.gif";
xoxo[5] = "image6.gif";

function pickRandom(range) {
if (Math.random)
return Math.round(Math.random() * (range-1));
else {
var now = new Date();
return (now.getTime() / 1000) % range;
}
}
// Write out an IMG tag, using a randomly-chosen image name.
var choice = pickRandom(ic);
// -->
</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.
CODE
<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!

 

 

 


Reply

serverph
check also my site tongue.gif but mine is in PHP smile.gif

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 smile.gif

Reply

googlue
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!

Reply

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

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

 

 

 


Reply

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

CODE
<?php

//sets the variables; and sets numbers TO them.
$quote[1]="This is Quote #1";
$quote[2]="This is Quote #2";
$quote[3]="This is Quote #3";

//sets up the random
$random = rand(1, count($quote));

//displays random variable
echo "$quote[$random]";

?>


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

Reply

odomike
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*

Reply

googlue
QUOTE(lib2day @ Oct 11 2004, 11:19 PM)
i'm sure you'll love it, googlue smile.gif it does not clutter up the page code, and keeps
the code safe from prying eyes. heheheü makes people wonder, "how is that
possible?" tongue.gif but for trap17 members, take a look all you want, and use it if
it fits your site requirement. biggrin.gif

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

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!

Reply

googlue
QUOTE(odomike @ Oct 12 2004, 04:09 AM)
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 laugh.gif

Thanks for your appreciation...

googlue!

Reply

odomike
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.

Reply

serverph
googlue and odomike, you're both welcome smile.gif

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 smile.gif

Reply

Latest Entries

googlue
QUOTE(odomike @ Oct 16 2004, 05:33 AM)
Wooow...thanks for the encouragement googlue. I really appreciate that. May i ask you for something?

Can you help me with a php script for a log-in form? I want a php form for my forum members to be able to log-in into my forums from my HomePage. I have one there already but it aint working cos of some problem which i dont know.

So, can you help me with that?

Oh! Odomike, if I knew so much, I wouldn't be asking you to learn fast!
I am very new to php, a very early newbie... may be something in html, I can...

Reply

odomike
QUOTE(googlue @ Oct 15 2004, 05:42 AM)
That's confidence odomike and I am sure you'll be a guru. I'll ask you for help in php in a few weeks, so start soon!  biggrin.gif

Wooow...thanks for the encouragement googlue. I really appreciate that. May i ask you for something?

Can you help me with a php script for a log-in form? I want a php form for my forum members to be able to log-in into my forums from my HomePage. I have one there already but it aint working cos of some problem which i dont know.

So, can you help me with that?

Reply

googlue
QUOTE(odomike @ Oct 15 2004, 07:06 AM)
That is quite true libs2day. For now, i havent known much about php coding and everything about php. But i am still learning everyday.

Maybe, someday, i am gonna be a guru in php scripting. I beleive that.

That's confidence odomike and I am sure you'll be a guru. I'll ask you for help in php in a few weeks, so start soon! biggrin.gif

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Pages: 1, 2
Similar Topics

Keywords : changing, logos

  1. Free Logos
    (4)
  2. Changing Font Sizes On Wordpress
    (5)
    I brought up this question in another thread, but I'd like to know how you can allow the user to
    change font sizes on a blog. An example of this can be found on this site . What files would I need
    to edit - header.php, style.css? If you can help me out on this one, feel free to shout out.....
  3. Build Online Cool Buttons And Logos
    Very cool (0)
    Just go here: CODE http://www.cooltext.com/ ....
  4. Free - Icons,fonts,logos,flash Buttons
    A Lot and Free, all hight quality (2)
    Just go here: CODE http://www.templatesfactory.net/cliplib.html   To download for
    free: ICONS Customize your template with appealing modern icons to increase usability of your
    site. IMAGES Our hi-quality royalty-free images will attract additional customers to your site.
    FONTS Use these beautiful original fonts to make your site more special. CLIPART Big
    clipart collection makes it possible to change the overall look of the template without any
    difficulties. LOGOTYPES Logotypes significantly increase brand recognition and can a....
  5. Looking For Free Logos?
    Stop looking! (2)
    Just go to this website, they offer good and quality logos for free: CODE
    http://www.brandsoftheworld.com/ i alsow have tried a tool called - "aaalogo" - Logo
    builder And is very cool, the problem is that is shareware, and you can't save the logos.
    Carpe diem.....
  6. 3500 Logos Of The .ai Extension
    Hight Quality (2)
    Here it is: http://d7.yousendit.com/C/62C0219BDDEB71FA...1/3500_logo.rar Carpe diem.....
  7. Templates,logos,scripts,tools, Etc... For Webdesig
    (0)
    here it is: CODE http://www.garagemoney.com/database.html carpe diem....

    1. Looking for changing, logos

Searching Video's for changing, logos
advertisement



Changing Logos... - you want this!



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE