• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to change input font and open new page in frame

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
now again...i m facing two samll problems...

1) i want to change the font color of input text fields.......means when u enter ur name it shuold b displayed in blue or any color expect black

2) i m using frames....one frame for menu...other for main body...requirement is that if user click any link of menu it would show the requested page in other frame.

Please Help me...Its my first project
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving to the HTML/JavaScript forum...
 
Ranch Hand
Posts: 1061
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1) With CSS: <input type="text" style="color:blue;" />
if you have a lots of theme its better to define CSS-class
2) In the file that contains the Frameset you have to give names to the frames; <frame name="content" ... />
If you have link in the navi-frame, that points to your content-frame, the link has to use the target-attribute containing the frame's name
<a href=".... target="content" />

cb
[ November 05, 2004: Message edited by: Chris Baron ]
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you do research on frames would would find the target attribute.

Eric
 
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Sara Ali,

Welcome to Javaranch. Hope you have a nice time here.

Originally posted by Eric Pascarello:
If you do research on frames you would find the target attribute.



I too agree with Eric.

The basic Idea to do is:

1. Have a page...say MenuList.html - with all the links.

2. Have a Content page, where the target page of each link is to be
displayed

3. Have a main page with two frames. One for Menu, the other for content.

Say 1. Menu Frame
2. Content Frame

4. In your menu page, specify the target attribute of the link to be the
contentframe.

This will load the targeted page, in the frame specified.
Hope this helps.

Cheers,
Swamy
 
Ramaswamy Srinivasan
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here's some code, that you might find useful.



The Menu.html will have all the links, defined with the target attribute, whose value would be contentFrame.

Does this help?

Cheers,
Swamy
reply
    Bookmark Topic Watch Topic
  • New Topic