www.webdeveloper.com
Recent Articles
  • Finding Slow Running Queries in ASE 15
  • A More Advanced Pie Chart for Analysis Services Data
  • Adobe AIR Programming Unleashed: Working with Windows
  • Performance Testing SQL Server 2008's Change Data Capture Functionality
  • The ABC's of PHP: Introduction to PHP
  • How to Migrate from BasicFiles to SecureFiles Storage
  • Why the Twitter Haters Are Wrong
  • User Personalization with PHP: Beginning the Application
  • Whats in an Oracle Schema?
  • Lighting Enhancement in Photoshop
  •  

    Go Back   WebDeveloper.com > Client-Side Development > JavaScript

    JavaScript JavaScript (not Java) Discussion and technical support, including AJAX and frameworks (JQuery, MooTools, Prototype...)

     
     
    Thread Tools Search this Thread Rate Thread Display Modes
    Prev Previous Post   Next Post Next
      #1  
    Old 07-18-2008, 10:32 PM
    ian0411 ian0411 is offline
    Registered User
     
    Join Date: Jul 2008
    Posts: 4
    resolved [RESOLVED] Help need! How to use Javascript to change font size & color?

    Hi All,

    I am new to the website design world. I really love it. But I have a problem about how to link my web page to a separate .js file.

    In my web page, I have 5 links. The problem I have is to use Javascript to make a rollover type of effect. I want to change fonts to 14px and blue color when the mouse hovers. And change it back when the mouse out.

    Here are my codes in the web page:
    --------------------------------------------------------------------
    <li><a href="home.aspx" title="home">home</a></li>
    <li><a href="contactinfo.aspx" title="contactinfo">contactinfo</a></li>
    <li><a href="customerservice.aspx" title="customerservice">customerservice</a></li>
    <li><a href="feedback.aspx" title="feedback">feedback</a></li>
    <li><a href="myaccount.aspx" title="myaccount">myaccount</a></li>
    ---------------------------------------------------------------------

    Can anyone show me how to write a Javascript code into a separate file and make this work? I really appreciate your help.

    Thanks,

    Ian
    Reply With Quote
     

    Bookmarks


    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    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 Off
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 08:43 AM.



    Acceptable Use Policy

    internet.comMediabistrojusttechjobs.comGraphics.com

    WebMediaBrands Corporate Info


    Advertise | Newsletters | Feedback | Submit News

    Legal Notices | Licensing | Permissions | Privacy Policy

    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.