Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
| Search | Today's Posts | Mark Forums Read
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 30th, 2005, 07:17 AM
Authorized User
 
Join Date: Jul 2005
Location: , , .
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default display script - zip file - something is wrong?

I have my coding in this zip file: http://www.geocities.com/stewart20064/website.zip

I tried to add on my display javascript but I can only change the color of the text and not the background of the text. I don't know why I can't change size of the text? Can someone help me change this? I just want the user to be able to change the display where the text is located at, not the whole page...

 
Old August 31st, 2005, 02:07 AM
joefawcett's Avatar
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

You need to target the text directly. If it is a <span>, <div> or input element then give that element an id and use:
Code:
document.getElementById("<id goes here>").style.font-size = <required size>;
--

Joe (Microsoft MVP - XML)




Similar Threads
Thread Thread Starter Forum Replies Last Post
zip file Venkatesan .NET Framework 1.x 1 July 4th, 2007 02:25 AM
Zip File Venkatesan General .NET 0 February 3rd, 2007 05:59 AM
Error in script but can't find what's wrong!! BramuS ASP.NET 1.0 and 1.1 Basics 1 May 10th, 2005 04:32 AM
Whats wrong with the GUI display Sandz Java GUI 1 February 5th, 2005 08:28 AM
Zip File Exodus Access VBA 1 December 29th, 2003 11:45 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.