Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Ezilon Directory   Perfect Money   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 09-26-2007, 09:00 PM   #1 (permalink)
Junior Member
 
Join Date: 08-23-07
Location: Planet Earth
Posts: 10
iTrader: 0 / 0%
Latest Blog:
None

dudeman is liked by many
Javascripts WANTED!(free, copy paste,)(Random Quotes display, & image change)

Ive found a great site with what I needed, but that was four years ago, & I have spent A LONG time looking for:

1) I want to have a quote on the top of each page that is randomly accessed from a text file containing a list of them on server when page loads, so I don't have to update every page when I see a new quote that I want to add to the textfile...

2) There's a javascript that uses rollover-like coding to show a different image depending on what link the cursor is over, & I want to use this in the navigation of the site, at the top of the page, so, (ie) if the user has the mouse over the "Downloads & media" , the top logo bar will change subtly (from a set of preloaded images) to illustrate the section) - (((The images will appear always in the same place, of cource))) - I've seen this on many websites, and it is easy to do, so given that it would be a better idea to make it as great as can be, since I can I need to have access to this script as well.

- Please point me to the sources, as Im sick of sifting through the crap out there,

Thanks,
Dudmanaroo

Last edited by dudeman : 09-26-2007 at 09:11 PM. Reason: wanted to emphasize need to have just one document (with list of quotes) to edit, when needed
dudeman is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 09-27-2007, 11:51 AM   #2 (permalink)
Empress™
 
chicgeek's Avatar
 
Join Date: 08-19-04
Location: York, UK
Posts: 17,962
iTrader: 0 / 0%
Latest Blog:
My Favourite Poem

chicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest order
Moved to coding
__________________
laura / chicgeek
soprano & web designer
laurakishimoto.ca
chıcgeeĸ @ flickr
chicgeek is offline  
Add Post to del.icio.us
Reply With Quote
Old 09-27-2007, 01:04 PM   #3 (permalink)
v7n Mentor
 
Costin Trifan's Avatar
 
Join Date: 04-13-07
Location: Romania
Posts: 2,952
iTrader: 0 / 0%
Costin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web pro
1. I think that that can be done easily with php .
2. Can you put a link to one of those websites you're talking about? I don't quite understand what you want here...
Costin Trifan is offline  
Add Post to del.icio.us
Reply With Quote
Old 09-27-2007, 05:31 PM   #4 (permalink)
Junior Member
 
Join Date: 08-23-07
Location: Planet Earth
Posts: 10
iTrader: 0 / 0%
Latest Blog:
None

dudeman is liked by many
Very simple, but there was a lot of unessessary text there.

- I would like to have a quote that appears,
ie: "Bush & Hitler = Same sh*it, different smell" at the top of each page, but have the quotes accessed randomly from ONE file, like a text file in the same folder on the server. I have found a javascript that can do that, but I need something that doesnt require the quotes to be imbedded in the javascript itself, which would mean loading each HTML page with too much unnessesary data, when the script, imbedded in each page could simply access a random quote from ONE file (would be a very busy document, when criticalunity.org gets popular...

2) everyone knows rollovers, but I once saw a script & (obviously cant find it at this time) that allows one to have an image change depending on what link the mouse cursor is over. (Say you have a navbar, & a section that displays an image illustrating what its all about... I could find hundreds of sites that use this, but I'm sure someone knows where to find this script). Please help me out here,

thanks, Dudeman

Last edited by dudeman : 09-27-2007 at 05:34 PM. Reason: |Al ittle birldie flew into my freakin window & blew a large anus fart into my left ear that sounded like" FIX TYPOS!!!!"
dudeman is offline  
Add Post to del.icio.us
Reply With Quote
Old 09-28-2007, 04:11 AM   #5 (permalink)
v7n Mentor
 
Costin Trifan's Avatar
 
Join Date: 04-13-07
Location: Romania
Posts: 2,952
iTrader: 0 / 0%
Costin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web pro
1. Javascript by itself cannot access file content. You can use File System Object (fso) within a jscript to do that but this is not an option, because fso uses the ActiveX object which is currently available only in IE.
As I said in my previous post, you can display your random (or not) quote from a designated file using PHP.
There are some professional PHP developers here on v7n and if you start a new thread with this request I'm sure they'll be more than happy to help you.
Using server-side code to do this is the best option, trust me.

2. Create the rollover:
You don't need javascript to create a rollover effect. You can use CSS to to that.


Consider this:

Quote:
Say you have a navbar, & a section that displays an image illustrating what its all about
A. Let's say thet the navbar contains these links:
  • Home (id="HomeLink")
  • Contact (id="ContactLink")
  • About (id="AboutLink")

B. The section will be a div:
  • <div id="section"></div>


C. Styles:

Code:
DIV#section { width: 125px; height: 200px; background-image: url('default-image.gif'); } A#HomeLink:hover DIV#section { width: 125px; height: 200px; background-image: url('home-image.gif'); } A#ContactLink:hover DIV#section { width: 125px; height: 200px; background-image: url('contact-image.gif'); } A#AboutLink:hover DIV#section { width: 125px; height: 200px; background-image: url('about-image.gif'); }
This will change the background image of the div depending on the link hovered.
Costin Trifan is offline  
Add Post to del.icio.us
Reply With Quote
Old 09-28-2007, 10:35 AM   #6 (permalink)
Junior Member
 
Join Date: 08-23-07
Location: Planet Earth
Posts: 10
iTrader: 0 / 0%
Latest Blog:
None

dudeman is liked by many
Question okay, well, I dont know about PHP, & I'm ....

used to copy- poasting code from sites, & I couldnt write a script, I can only slightly understand what its doing, & how to modify it. - I found an exsample online, but it only has 4 links, but Im sure it can be modified, & I dont mind using javascript for that. - Is it a problem to use javascript? What is CSS?

I had once seen a script that made link colours fade< & there was a file that had to be in the folder, (on server) that contained style & timing info>>> (why cant i do something like that with the quote script? )honestly,I want to get this site out there ASAP< & im not highly inclined to studyphp,(yET) if proven to be unnessesary, Because Im perfectly happy with Dreamweaver, but it has PHP support... --Is there a simple tutorial to learn this strange thing?
Thanks, D
dudeman is offline  
Add Post to del.icio.us
Reply With Quote
Old 09-28-2007, 01:15 PM   #7 (permalink)
v7n Mentor
 
Costin Trifan's Avatar
 
Join Date: 04-13-07
Location: Romania
Posts: 2,952
iTrader: 0 / 0%
Costin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web pro
Quote:
What is CSS
this is CSS: http://www.w3schools.com/css/css_intro.asp

Quote:
I had once seen a script that made link colours fade< & there was a file that had to be in the folder, (on server) that contained style & timing info>>> (why cant i do something like that with the quote script? )
That was a javascript file containing functions to provide the fade in/fade out functionality. (but what about those users that don't have javascript enabled? That functionality would not be available for them..)
You can, using jscript to create and use the fso.
As I said, create a new thread with this request and I'm sure you'll get your copy/paste php script.

Quote:
Is there a simple tutorial to learn this strange thing?
There are thousands and thousands of sites and tutorials out there. All you have to do is search for them.

Good luck!
Costin Trifan is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Post your last Copy and Paste. Elysium Forum Lobby 143 02-28-2007 10:45 PM
suddenly can't copy and paste in Firefox Kalina Computers & Internet 43 05-21-2006 12:46 AM
Problem copy and paste ASP files scripts from a back up CD discusman Web Directory Issues 8 04-16-2004 05:44 AM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 01:17 AM.
© Copyright 2008 V7 Inc