googlue
Oct 11 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 codeCODE <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
Oct 11 2004, 04:51 PM
check also my site  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
Reply
googlue
Oct 11 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!
Reply
serverph
Oct 11 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.  btw googlue, you won't have a problem there as i'm hosted also here (so we're on the same server)  fully-tested, with *big-grin* satisfaction, guaranteed. 
Reply
serverph
Oct 11 2004, 05:57 PM
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. it works just like your javascript code, wherein you add as many quotes as you want.
Reply
odomike
Oct 11 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*
Reply
googlue
Oct 12 2004, 12:21 AM
QUOTE(lib2day @ Oct 11 2004, 11:19 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.  btw googlue, you won't have a problem there as i'm hosted also here (so we're on the same server)  fully-tested, with *big-grin* satisfaction, guaranteed. 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
Oct 12 2004, 12:36 AM
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 Thanks for your appreciation... googlue!
Reply
odomike
Oct 12 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.
Reply
serverph
Oct 12 2004, 05:50 AM
googlue and odomike, you're both welcome  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
Reply
googlue
Oct 16 2004, 03:23 PM
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
Oct 16 2004, 12:03 AM
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! 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
Oct 15 2004, 05:42 AM
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!
Reply
Similar Topics
Keywords : changing, logos
- Changing Hosts?
(1)
Question About Changing Domain Names.
(8) Hey guys how's it going! I just had a quick question about changing domain names. My domain
now is fearclan.trap17.com, and I wanted to change it to fearclan.org. How should I do it? Do I use
the credit system and it will give me my own domain for free? Or do I have to buy a domain name from
godaddy or something and then change it? I really need an answer for this as soon as possible.
Thank you so much guys! /laugh.gif" style="vertical-align:middle" emoid=":lol:" border="0"
alt="laugh.gif" />....
1350 Great Free Logos (jpg + Psd)
With both jpg and original psd files to edit (8) 1350 Great Free Logos (With both jpg and psd files)
http://rapidshare.com/files/126291346/1346...Great.Logos.zip This is a great collection of
logos, they are already made logos which you can use like that or just use to create other logos, do
what you want, they are free, they came from free websites that give this logos for free and lot
more, but i just took the good ones mainly. There is also a small collection of 100 logos inside
the compressed file, which you can use to insert those graphics in your logo/design/web design
projects, do what you want with them ....
The Worst Experience In My Life Yesterday
life changing (1) i was with one of my friends. we went to a roller rink. it was around 9:00 pm she was giving 6
people rides home so theres 8 people in the van. i new 1 out of the 6 people. she new them all.
1guy5girls me and my friend Kaitlyn. one of the girls in the middle row sed "lets ride on the bumper
agen" i didn't no what they rely where going to go. we pulled to a back road and 2 of the girls
got out and got on the back bumper and held on to the top railing. 3 people including me where
telling them this is not a good idea they sed " don't worry we did this before" we dr....
Changing Root Script
(0) I decided to go with paid hosting with computinghost.com. When I chose my initial installation, in
my ignorance, I didn't know you couldn't install both the Joomla installation and the
Soholaunch website builder, so I checked both. They installed the Joomla and not the Soho. Since I
have never looked at Joomla and know nothing about using it, I would like the other installation. I
first tried live chat, but they said contact sales. So I sent an email and got a ticket number.
BPM-881376 When I try to check on the status I get this message: Fatal error: ERROR: You ....
Changing From Free Hosted To Paid Hosted [resolved]
How dows it affect my account (3) I recently purchased a paid hosting account and since I was a previous trap 17 free hosted account
user I wanted to knwo what will the changes be and and how will i see the upgrade on my account.
Will the server completely change from the gamma server that im currently on to the delta server or
will it remain the same. Also I did purchase 3S. Thanks......
How Do I Change The Default Windows Font Size?
Without changing DPI, of course. (3) I know there's an option in Ubuntu to change all the font sizes of the general system, the
windows, and etc. Now I'm trying to do this in Windows. I've changed everything about
the windows except for the general system size. How do I do this?....
Changing Trap17 Domain?
(2) Hello. I think I've heard about this somewhere or another on this site, but am not sure.
Currently, my domain is http://sherwoodinfo.trap17.com ...is there any way I can get it changed to
http://sherwood.trap17.com , I checked and it seems that is available. Thank you!!....
What Is Fun Anymore?
Changing the definition of 'fun' (5) Child comes home, flips on the flips on the tv. Toasts the waffle, spreads the peanut butter with a
grim face. Ready for some 'fun.' But this isn't the fun that you and I know and have
come to love. I remember when fun used to be playing in the park, building a castle out of my
sister's leftover girl scout cookie boxes. But not anymore, that is boring, a waste of time. I
remember when being creative was fun thing to do. Why is it, that when a child of today is
asked whether they would like to game, they remark, 'Sure, what site?'....
Changing Dns Records
How to change my DNS records? (5) I need to change my DNS records, that is, to add several CNAME records... Now, I registered my top
level domain (.net) through my ISP, and they in turn registered my domain at some other registrar...
Now, my ISP doesn't give me CPanel to update my DNS info, if I don't buy their hosting plan
(which is pathetic compared to Trap17 free account)... I had them change my nameservers to Trap17
servers, and now, they tell me I need to edit CNAME records on Trap17 nameservers... I must admit
I'm not really familiar with how all that DNS administration works, so I want....
Changing Domain Names Question
(1) i know where to go to change my domain name for 15 credits, but before i do, i need a question
answered my subdomain on trap is wildcat-exotics. i just recieved my free domain
name(wildcatexotics.com) and used it as an addon domain. i don't wish to do this. i also have
another addon domain to my trap account called petsxpress.info for a total of two addon domains to
my wildcat-exotics account. my question is, when i change domains from wildcat-exotics.trap17.com
to wildcatexotics.com, do i need to change anything or delete anything in my cpanel? how will my
addon d....
Changing Domain Name Without Losing High Traffic To My Site
Need Answer From Admin (13) I have a doubt to do what i want, so i am going to the point, m ysituation is that i have a trap17
free subdomain where i have my free flash clocks website, and its link is
http://free-flash-clocks.trap17.com . Recently i bought a domain name, its link is
www.freeflashclocks.com , and what i want to and i am not certain if i can is that i want to,
redirect all the visits of my free subdmain to my new domain, just for 1 or 2 months, if that is
possible, i apreciate it if it is not but you allow it because i have thousands of visitors a day
(~7000/day) and it is growing....
Question About Changing Hosting Type.
(5) I was wondering if it is possible to do the following thing with my trap17 account. Since school
has come by again I keep finding it harder and harder to keep my credits up because a lot of nights
I don't even get to look at the computer. I also have noticed that I am not really using trap17
for hosting a lot of websites but more files and such not. I was wondering if I am able to
downgrade my account for the time being to the account with the "One text ad" version. But a
question on that, that I have is: if I host an image with my account that way and put the ima....
Changing Mac Of Ethernet Card
(2) Now you can change Mac address of your ethernet card in windows xp step 1: Double Click on Network
icons step 2: Select properties step 3: click on configure step 4: On pop up window goto advanced
tab step 5: now on settings goto locally administered address step 6: Changes the MAC address used
by this network adapter. The address is a 12-digit hexadecimal number in this range: 0000 0000 0001
- FEFF FFFF FFFF CAUTION: Make sure no other systems on the network use this address. ....
Rate My Logos
(5) i've made new logos for my site http://www.xatre.info/ please rate them and provide any
suggestions ....
Making Changes To Subdomain Name
Changing the bit before"trap17" (2) I have read somewhere in the forums it is possible to change your subdomain (i.e. the part of your
name that comes before 'trap17.com'). I have not found anywhere how to do so, however. So,
sorry if it was already posted somewhere and I missed it, but could someone let me know how this is
done? At the moment I have vlaanderen-flanders.trap17.com, how could I change the
'vlaanderen-flanders' bit? All help will be much appreciated. ....
Changing Domains
(2) Well, my site is www.d24cheap.trap17.com and I was going to buy a domain so that it doesn't have
trap17 in it. I know that we can change domain name for 15 hosting credits but if I do that what
happens to new site? I want all the stuff on my current site to be moved onto new site.....
I.p Download Manager
changing upload limit (0) I recently purchased I.P Download Manager(The download manger that you can purchase from invision
power services) for my forum. When you go to make categories in the AdminCP, there is a field where
you can edit the upload limit. This is what it says: QUOTE Maximum screenshot file sizes
allowed (in kB) Your host has limited the maximum file upload size to 2M. You cannot set this value
any higher than the maximum your host has set. Is there anyway I can make the upload limit
larger than 2mb? I have another downloads manger which is unrelated to the forum, on this....
Free Logos
(4) Is there any website offering free logos?....
Question About Accesing Site After Changing Domain [resolved]
Anyone have answers (2) Just wanted to make sure that I didnt screw up things. Either way i just currently had the domain
name changed here on Trap17. So I have made that change as well as I also pointed the servers for
my domain to trap 17. So now my question is to i need to wait until the servers read my domain..
beore i can access anything or should I be able to already do taht. Reaso is Now once i go to my
domain I see the default page from the domian company i bought from. But I can access the CPanel
for my hosting here. and it shows it made the change on the domain, but I cannot ....
Changing The Windows Xp Splash Screen
another quick tutorial (10) First make create 16 bit 640*480 image and save it as boot.bmp in 'c:\windows'
directory Click Start|Run and type c:\boot.ini. The file opens in Notepad. Look for an entry
similar to this. CODE
"multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft
Windows XP Professional" /noexecute=optin /fastdetect" Add /noguiboot /bootlogo at the
end of the line so that it looks like this. CODE
"multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft
....
Changing Billing Info Online
There should be some way to change billing details on line (2) It would be very nice to be able to change billing details online, especially to change the credit
card used to pay for the site.....
Changing Sotw To Sotm
(16) I've been allowing SOTW entries to run for 2 weeks to get more entrants, as well as voting. So
I'm figuring, 1 SOTW is lasting nearly a month. So why don't we have a SOTM? (Sig of the
Month). Nothing would change, the rules are the same. It'd just be an official change to allow
more time. I'm open for suggestions, it won't change until we get everyone's input - I
don't want some unautorized change. Graphic Crew members I really want your input on this. Vote
yes or no for the change, and give a reason. Everyones input is welcome - espessi....
Changing Legal Age For Driving
(43) Now this is a good debate I think as it's something I'm not happy with as I have haven't
passed yet. I first started having driving lesson at 17 and I didn't fully understand that I
would have to take quite a few as I have learning disabilities and I quit them. As for my brother
he has been taking them for a couple of months now bu the thing that has pissed him off quite a bit
is that they are supposedly chnaging the age of when a newbie can learn how to drive and that will
include even when they have passed. They are supposed to be poutting the age of ....
My First Go At Professional Logos
Do you think they look professional? (10) Many of you have seen my other logos which we more cartoon and "artsy". I wanted to try my luck at
some professional looking logos. Here are 2 for my site http://ojproductions.net which i am
currently redoing, so yes, i know they do not match the current site. So here they are. Tell me what
you guys think. They are plain and simple professional looking logos, or at least i think they are
lol. What do you think? ....
Changing Background Color In Php
usefull for templating. (5) Tutorial on how to change background color with PHP I will be descibing to similiar ways that
you can change the background color of your website with php and leave it at that till the user
changes it again. We are going to do this with CSS. You can either have your cSS info on your page
or in a spereate document. The first thing youll have to do is decide if your going for the linked
stylesheet or directly on your page. IF you link it you'll need to have this code in you
tags. CODE <style type="text/css"> <?php include ("st....
Changing A Gmail Password
how do u do it? (10) hi i have a gmail account well a couple of them and i know that someone has been getting on my
account and screwing with it however i dont know how im supposed to get on and change my password.
i've tried even getting them to send me information and what not when i forget my password but
all the same i can never get to a point where i can change it and it kinda is making me upset. my ex
gets on my account and yells at my friends telling them that i've changed and that i dont want
anything to do with them and thats wrong i love my friends. anywayz if you know how ....
Verizon Phone Book Transfer
changing phones... (3) ok well u know how Cingular and AT&T have sim cards so when u switch phones u can just put the sim
card in there so u dont have to re do ur phone book and stuff...and i was just wondering if there
was on for Verison...because im changing fones soon and its annoying adding my fone book again...
o and also is the new razor fone only for cingular? because i always thought it was but then a
friend of mine told me it is for veriZon to...but i think he heard wrong...anybody knows? Topic
title should be clear and related to posting message. Edited topic title and spelling.....
Making Money Creating Logo's
How to make money designing logos using Adobe Photoshop (19) Hey all, Over the last few years I have been experimenting with making money over the internet.
Being a very creative person I naturally took on to web design. However, I soon found that it was
too time consuming for my liking and it rarely paidf off. Whilst playing around with Photoshop
which someone bough me as a present I started to learn the essential techniques of graphic
designers. Before I knew it I was able to make basic logos that could be sold at a price. Not long
after discovering this I found a site that did forum auctions on logos. A customer requests a ....
Changing A Dynamic Ip
How to change your dynamic IP. (18) In this tutorial I will tell you how to change a dynamic IP if you have Windows XP. First of all go
to - Start >> Run - and type 'cmd'. A window with a black background and grey text. In
this window type 'ipconfig' and text should come up saying: IP Address ............. *IP
HERE* Subnet Mask ................ *SUBNET MASK HERE* Default Gateway .......... *DEFAULT GATEWAY*
Write this down on a bit of paper on in notepad. You will need them later. Now type
'ipconfig/release' - this will terminate your internet connection - but don't g....
Looking for changing, logos
|
*RANDOM STUFF*
*SIMILAR VIDEOS*
Searching Video's for changing, logos
*MORE FROM TRAP17.COM*
|
advertisement
|
|