UK Webmaster Talk - Online Marketing - SEO


 

text box colour

This is a discussion on text box colour within the Website Design Forum forums, part of the Website Design & Development category; hey, i want one of my text boxes to change colour when i click inside it, and when i click ...


Go Back   UK Webmaster Talk - Online Marketing - SEO > Website Design & Development > Website Design Forum

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Notices

Reply

 

LinkBack Thread Tools Display Modes
Old 20-10-2005, 19:07   #1 (permalink)
Super Moderator
 
Lewis's Avatar
 
Join Date: Apr 2005
Location: Leics, UK
Posts: 1,000
iTrader: 0 / 0%
Lewis is just really nice
Send a message via AIM to Lewis Send a message via MSN to Lewis Send a message via Skype™ to Lewis
Default text box colour

hey,

i want one of my text boxes to change colour when i click inside it, and when i click away from it, it changes back to a default colour.
it would be great if you could help!

also, i would like a code for when i hover over a link, it enlargens/changes colour, but i dont know how to do these things.

please help

Lewis
Lewis is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 20-10-2005, 19:20   #2 (permalink)
Moderator
 
Join Date: Mar 2005
Location: Barnsley, UK
Posts: 1,001
iTrader: 0 / 0%
Wistow has a reputation beyond reputeWistow has a reputation beyond reputeWistow has a reputation beyond reputeWistow has a reputation beyond reputeWistow has a reputation beyond reputeWistow has a reputation beyond repute
Default

CSS is the way to go, try www.w3schools.com/css/default.asp

Craig
Wistow is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 20-10-2005, 19:26   #3 (permalink)
Senior Member
 
Join Date: Apr 2005
Posts: 350
iTrader: 0 / 0%
rustypaulin has a spectacular aura about
Send a message via AIM to rustypaulin Send a message via MSN to rustypaulin
Default

for the hovering over a link just insert this code into the header of your site

Code:
<style type="text/css">
<!--
a:hover {
	text-decoration: none;
	color: #666666;
	font-weight: bold;
	font-size: 14px
}
-->
You can edit those values to make it fit your site better
__________________
Webmaster
Postal Service Access
Hosting Advice
PSP Cheats
rustypaulin is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 20-10-2005, 22:46   #4 (permalink)
Super Moderator
 
Lewis's Avatar
 
Join Date: Apr 2005
Location: Leics, UK
Posts: 1,000
iTrader: 0 / 0%
Lewis is just really nice
Send a message via AIM to Lewis Send a message via MSN to Lewis Send a message via Skype™ to Lewis
Default

Quote:
Originally Posted by Wistow
CSS is the way to go, try www.w3schools.com/css/default.asp

Craig
i'm afraid, on that website, i dont see anything that will help me with the text box query.
Lewis is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 20-10-2005, 23:47   #5 (permalink)
Super Moderator
 
Join Date: Mar 2005
Location: Herts, UK
Posts: 1,034
iTrader: 1 / 100%
monaghan is a jewel in the rough
Default

I won't give you the code as figuring it out will do you good

What you need to do is to use a bit of JavaScript attached to the onClick event for the textbox, you then simply modify the style of the text box.
monaghan is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 21-10-2005, 00:03   #6 (permalink)
Super Moderator
 
Lewis's Avatar
 
Join Date: Apr 2005
Location: Leics, UK
Posts: 1,000
iTrader: 0 / 0%
Lewis is just really nice
Send a message via AIM to Lewis Send a message via MSN to Lewis Send a message via Skype™ to Lewis
Default

sorry, i'm only an amature web designer, i dont understand what you meant then!
but thanks anyway
Lewis is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 21-10-2005, 07:29   #7 (permalink)
Super Moderator
 
Join Date: Mar 2005
Location: Herts, UK
Posts: 1,034
iTrader: 1 / 100%
monaghan is a jewel in the rough
Default

Well, time to learn then , what you need to research is DHTML, get yourself a copy of Sitepoint's "Modern Web Design uisng JavaScript & DOM" or Google for DHTML tutorial.

Seriously though you need to spend the time and understand fully what is happening within the browser as it will help you build better web sites. Any fool can load Dreamweaver or Photoshop and craft something that looks nice, what sets you apart is the ability to make the system do what you want.

Basically the whole web page is a large collection of objects, when you load the page it creates each of these objects (<P> <div> and so on), it then applies 1 or more style sheets to modify these objects (you can often see a page load then re-format itself as it applies the style sheet if the connection is slow).

All you need to do is select the object you want, hook in to it's event trigger (in this case when someone selects (focus event) it and then deselects it (blur event)) and then modify it's style attributes.
monaghan is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 21-10-2005, 10:19   #8 (permalink)
Super Moderator
 
Lewis's Avatar
 
Join Date: Apr 2005
Location: Leics, UK
Posts: 1,000
iTrader: 0 / 0%
Lewis is just really nice
Send a message via AIM to Lewis Send a message via MSN to Lewis Send a message via Skype™ to Lewis
Default

thanks monaghan and rustypaulin, these have really helped.

monaghan: i will look into that book


many thanks
Lewis is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 21-10-2005, 10:35   #9 (permalink)
Super Moderator
 
Join Date: Mar 2005
Location: Herts, UK
Posts: 1,034
iTrader: 1 / 100%
monaghan is a jewel in the rough
Default

You can usually get sample chapters as a PDF download from Sitepoint, so you can actually see the sort of thing you will get when you purchase.
monaghan is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 23-10-2005, 11:20   #10 (permalink)
Cool Newbie
 
Join Date: Oct 2005
Location: oxford
Posts: 43
iTrader: 0 / 0%
talby101 is an unknown quantity at this point
Default

Maybe they can look at a site that does it already and work it out. It will assist in learning how different 'pieces' of the page come together.
talby101 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
box, colour, text

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

BB 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
$1 Text Links rustypaulin Buy and Sell Ad Space 1 14-07-2006 21:47
colour chart Lewis General Webmaster Discussion 2 21-05-2005 11:53
Change Scroller Colour Departed Comments / Suggestions 2 29-04-2005 16:06
Change Scroller Colour Departed Programming Articles 6 23-04-2005 09:59


All times are GMT +1. The time now is 18:01.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
UK Webmaster Forum © WebmasterTalk.co.uk | Design by Forbairt

Ad Management by RedTyger

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41