How can I change font style?

Hello
My jsp page consists of 2 frames. In the first frame I have 3 links(references) to the pages, that open in the second frame. When I click any of the link, I want to change the colour of that link into red and if i click another one, then I want to change the colour of the first link back and another one I want to have red colour.
Can anybody tell me, how to do it??
Thanks a lot
source:
<form NAME='bells'>
<table width="203">
<tr>
<td>First</td>
</tr>
<tr>
<td>Second</td>
</tr>
<tr>
<td>Third</td>
</tr>
</table>
</form>

use javascript
on onclick event of each tag call a javascript function and change the color..
e.g.
<script>
var currentLink = null;
function changeColor(selectedLink){
selectedLink.style.color="red";
if(currentLink) currentLink.style.color="blue";
currentLink = selectedLink;
</script>
<form NAME='bells'>
<table width="203">
<tr><td>
First
</td></tr>
<tr><td>
Second
</td></tr>
<tr><td>
Third
</td></tr>
</table>
</form>

Similar Messages

  • HOW CAN I CHANGE FONT STYLE IN INDEX PAGE FOR IBA?

    Hi
    Is it possible to change the font style in INDEX page for iBA?
    Naidu

    NO. In the index page. I figured out that we can change the space and text formate.
    I am preparing a bokk with 1 chapter and 13 section.
    SO, in the index page it is showing like 1.1, 1.2.......1.10, 1.11 so on; on the left hand side and page numbers on the right hand side.
    Can i take out the numbers on the left and have only the section name and page number?
    If so how?

  • How can I change the style of a row in tableview?

    Hi,
    How can I change the style of a row in tableview, for example ,I have 10 items in table view, and I'd like to change row 1,4,10 background-color:red; font-family:Arial ,Font-Weight:BOLD.
    Any suggestion?

    Yes, I knew how can I change the style using cell factory. there is a lot of work to do if it has so many columns in table view. we need to implement every cell factory, Do we have a simple way to change the whole row style , just like fabsav said, I 'd like to set the special row like this line:
    tableview.getItems().get(i).setStyle("myRowstyle"); And I found a bug if I implement my functionality with cell factory way, I can't change the cell style after rendering cell.
    protected void updateItem(Object object, boolean empty) {
          super.updateItem(object, empty);
    }updateItem() was only triggered while cell is being rendering, there is no way if I'd like to change the cell style after rendering event.
    Hi fabsav, How can I apply a CSS class to a specific row? Can you please provide a short example?
    Edited by: imtoocute on Aug 28, 2012 10:31 AM

  • How can I change font size in iCal 3.0.8?

    How can I change font size in iCal 3.0.8?

    Julian,
    There is no user option to change the font size in iCal.
    For other posts regarding this topic, read some of the links in "More Like This." box just to the right of your first post in this thread.

  • How can you change the style of a flash tabnavigator with css

    I'd like to change the colors of a tabnavigator in flash
    form.
    I found an example how to change the layout for a panel but
    it doesn't inherate it to my tabnavigator.
    Here a simple example for a panel that works:
    quote:
    <cfsavecontent variable="contentPanelStyle">
    panelBorderStyle:'roundCorners';
    backgroundColor:#EFF7DF;
    headerColors:#CBEC84, #B0D660;
    </cfsavecontent>
    <cfform name="myform" width="420" format="Flash"
    timeout="100" >
    <!--- skinned --->
    <cfformgroup type="panel" label="With styles"
    style="#contentPanelStyle#" width="400">
    <cfinput type="text" name="someinput" label="your name"
    />
    </cfformgroup>
    </cfform>
    Actually, I just want to colorize my tabnavigator items
    (don't want even a panel around it). How can I do this, as example
    with the same colors like the panel?
    pawel

    Found 1 solution for the active Tab
    quote:
    <cfform name="myform" width="420" format="Flash"
    timeout="100" >
    <cfformgroup type="tabnavigator"
    style="themeColor:##CC0000;">
    <cfformgroup type="page" label="Tab 1">
    <cfinput type="text" name="someinpu1t" label="your name"
    />
    </cfformgroup>
    <cfformgroup type="page" label="Tab 2">
    <cfinput type="text" name="someinput2" label="your name"
    />
    </cfformgroup>
    </cfformgroup>
    </cfform>
    But still, how do I controll the colors of the inactive Tab
    and the highlight Tab (rollover mouse)?
    pawel

  • How do I change font style in Illustrator CS3?

    I am working on an EPS in CS3 and have three simple lines of text for which I would like to change the font style. How do I do that? I've highlighted the text using Arrow and/or "T" tools, and then selected different font styles from Type>Font...but nothing happens. Any simple suggestions for what I would hope is a simple issue? Thanks.

    Scott Falkner, your answer was correct. The letters are outlined, not solid black. A new tool appears that looks like a magic wand, and it does allow me to select the outlined letters. However, font changes have no effect, which makes sense if the program does not recognize these as text any longer.
    To answer your subsequent question, in my version of the software, a toolbar appears on the left (likely default, as I have never configured a special setting) that shows a black arrow in the upper left defined in the rollover as "Selection Tool (V)," and the second line below to the right shows a "T" defined as "Type Tool (T)." Those are the two tools I was using to select what I thought was the copy.
    Thanks everyone for your replies.
    FYI Scott Falkner: although I tried to mark your answer "Correct," I got an "Unexpected error has occured " from the Adobe forum Web site, so your answer was marked "helpful" instead, which did not create an error.

  • How can i change the style of javascript alert

    how to change the alert style of javascript is there any way to change the style of alert window please mail me at [email protected]

    Anyway.. Because you asked..
    There is NO way to do this.
    Alerts from Javascript is a browser native call. Look and feel depends on implementing browser.

  • How can I change a style setter using code?

    I have several Labels using the same Style:
    <Canvas.Resources>
    <
    Style TargetType="{x:Type Label}" x:Key="TitleStyle">
    <
    Setter Property="FontSize" Value="24"/>
    <Setter Property="FontWeight" Value="Bold"/>
    </Style>
    </Canvas.Resources>
    I'd like to change the Setter "FontSize" using some code.
    Any idea?

    You cannot change a setter (or anything else in a style) once the style is in use.
    You can create a new style, remove the current style from the resources, and add the new style as the value for key "TitleStyle".  Elements that used DynamicResource to refer to the style will change, but elements that used StaticResource will not.
    Another approach is to add a trigger to your style.  Then you can get the effect of changing FontSize from code:  just have the code change the value that the trigger reads as its input.
    Yet another approach is to data-bind the FontSize to some property that you can change from code, and attach a ValueConverter to the binding that chooses the size you want.

  • How can I change font color on mail?

    How can I make it so all emails start with an altered font color? Thanks!

    i just trialed it out, and under the prefs you have to select what font you want, and above it theres are little icons with the different font colours, theres like the colour spectrum circle thing, you should be able to take a selection, apply it and its all done.
    sorry i cant help more

  • How can I change font, make it bold, etc. in a new message?

    I'm using TB 31.5.0. When composing a new HTML message, I'm not seeing a way to easily change fonts, font size, bold, etc. I have "compose messages in HTML format" checked. My wife says she thinks this feature used to be there in earlier versions of TB.
    Thanks,
    Thom

    Perfect! Thank you so much!
    ''thomprice [[#question-1049880|said]]''
    <blockquote>
    I'm using TB 31.5.0. When composing a new HTML message, I'm not seeing a way to easily change fonts, font size, bold, etc. I have "compose messages in HTML format" checked. My wife says she thinks this feature used to be there in earlier versions of TB.
    Thanks,
    Thom
    </blockquote>

  • How can I change font name on Mac to be compatible with PC?

    Hi,
    My font names on my new Macbook does not match with PC and my previous Macbook. For example, "CordiaUPC" on PC and my old Macbook is called "UPC-Cordia" on my new Macbook. So all my saved documents where font was set as "CordiaUPC" is now unreadable, and I have to reset the font to "UPC-Cordia" when I open it. The issue is, I am a writer and I have to submit my writing to people who use PC's. Then when they open my document, it appears like it cannot be read. It is super inconvenient.
    Does anyone know how I can change the name of the fonts in the Font Book? I tried selecting like when I rename the files but it didn't work.
    Thanks.

    Are you using the same font file on Your Mac as the PC users are? Meaning, that the font file was copied/installed from a PC to your Mac's /Library/Fonts or ~/Library/Fonts folder or did you install the Mac version of the font on your Mac. You can try flushing the font cache for your Mac with a utility like Cocktail or Onyx to see if that resolves the naming problem.

  • How can i change fonts?

    hi !!
    i did very nice my iweb with very nice fonts i did publish, i go to visit! and all my fonts are diferents , what can i do for fix that? thanks alot!
    Message was edited by: Am Rock

    The effect isn't applied to the text box, but to a character within it...
    Select just one character by dragging the mouse over it, e.g. the final period in the text (or "full stop" for Brits).
    Open the Inspector > Graphic tab > check the Shadow check-box. Click on the color panel below it to select the color of the shadow.
    ...That's it. You won't see any difference within iWeb. But when you publish and then view your site in a browser on a computer that doesn't have your special font, it will appear just as it does on iWeb's canvas.
    This is how it's done in iWeb 1; perhaps there's an easier way in iWeb 2.

  • How can I change font in the FileWriter???

    Hello!
    I just want to make a test program. This program make a text-file. This file have a the fallowing text: Hello!
    I want to save the text with following font: Courier, 12pt, Bold.
    How I can do this?
    This is the code:
    String text="Hello!";
    try{
         FileWriter fw=new FileWriter("wtest.txt");
         fw.write(text);
         fw.close();
         System.out.println("OK!");
    }catch(Exception e){
         e.printStackTrace();
    Thanks for your help!

    Text files have no concept of font. They contain (generally) 8-bit characters represented in ASCII.
    If you want to store font information, you need to coose a format that supports this like html or pdf.

  • How can I change the style of a google map in Adobe Muse?

    I have seen some nice changes of google maps out there.
    This tool helps you to customize your maps.
    http://gmaps-samples-v3.googlecode.com/svn/trunk/styledmaps/wizard/index.html
    When I want to integrate a google map I copy in something like this:
    <iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.de/?ie=UTF8&ll=50.111772,5.50415&spn=1.657435,3.177795&t=m&z=9&output= embed"></iframe><br /><small><a href="https://maps.google.de/?ie=UTF8&ll=50.111772,5.50415&spn=1.657435,3.177795&t=m&z=9&source= embed" style="color:#0000FF;text-align:left">Größere Kartenansicht</a></small>
    the style code i made looks like:
    [ { "stylers": [ { "invert_lightness": true }, { "hue": "#00b2ff" }, { "lightness": 5 } ] },{ "featureType": "road", "elementType": "labels", "stylers": [ { "visibility": "off" } ] },{ "featureType": "poi", "elementType": "geometry", "stylers": [ { "visibility": "off" } ] },{ "featureType": "poi", "elementType": "labels", "stylers": [ { "visibility": "off" } ] },{ "featureType": "transit", "stylers": [ { "visibility": "off" } ] } ]
    Where should I copy the style code?
    I have no idea... :-/
    Please help!

    The style code is JavaScript that goes into the respective script section. It says so on the Google Maps API page.
    Mylenium

  • How can I change font size of advanced search results?

    Once I do an advanced search the font is very small. Any way to change it?

    Printer font size is controlled by your printing software or browser settings. You must change the font size in these programs.

Maybe you are looking for