Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic 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 November 11th, 2004, 01:09 PM
Registered User
 
Join Date: Nov 2004
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default making a link bold

www.knalle.dk/GANT

How do I make the links in the menu bold when clicked?
The links load external html for iframe...


<a class="links" href="box/profil.html" onclick="return loadIframe('box', this.href)">Profil</a>

 
Old November 11th, 2004, 01:29 PM
Friend of Wrox
 
Join Date: Nov 2003
Location: , , .
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

<a class='links' href='box/profil.html' onclick='return loadIframe("box", this.href)' onmousedown='this.style.fontWeight="bold"' onmouseup='this.style.fontWeight="normal"'>Profil</a>

Edit: I deleted my last reply, I didn't mean to post it.

-Snib
Where will you be in 100 years?
Try new FreshView 0.2!
 
Old November 11th, 2004, 01:35 PM
richard.york's Avatar
Wrox Author
Points: 5,506, Level: 31
Points: 5,506, Level: 31 Points: 5,506, Level: 31 Points: 5,506, Level: 31
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Camby, IN, USA.
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

a:active {
    font-weight: bold;
}

Regards,
Rich

--
[http://www.smilingsouls.net]
Mail_IMAP: A PHP/C-Client/PEAR solution for webmail
Author: Beginning CSS: Cascading Style Sheets For Web Design
 
Old November 11th, 2004, 06:59 PM
Registered User
 
Join Date: Nov 2004
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

oh thanks - but what i meant was that it stayed bold for the page you were viewing (so it like shows you where you are)... so i guess i need to set all of em every time (one is bold the rest is set to normal)

 
Old November 11th, 2004, 09:26 PM
richard.york's Avatar
Wrox Author
Points: 5,506, Level: 31
Points: 5,506, Level: 31 Points: 5,506, Level: 31 Points: 5,506, Level: 31
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Camby, IN, USA.
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

No, you can use a bit of CSS to do that.

I recently discussed this in a couple of other threads.
http://p2p.wrox.com/topic.asp?TOPIC_ID=20128
http://p2p.wrox.com/topic.asp?TOPIC_ID=21617

HTH!



Regards,
Rich

--
[http://www.smilingsouls.net]
Mail_IMAP: A PHP/C-Client/PEAR solution for webmail
Author: Beginning CSS: Cascading Style Sheets For Web Design
 
Old November 12th, 2004, 11:46 AM
Registered User
 
Join Date: Nov 2004
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

But how do i get it to work with iframes?
I looked at the Hicksdesign example
http://www.hicksdesign.co.uk/journal...-page-with-css

but it isnt using iframes..





Similar Threads
Thread Thread Starter Forum Replies Last Post
Making a link to documents in ADO/ASP gene4455 BOOK: Beginning ASP 3.0 3 November 12th, 2008 01:57 PM
Making a next and previous link using testing Aaron_j XSLT 0 July 28th, 2005 04:19 AM
Making an email address link jks709 Classic ASP Databases 1 July 28th, 2004 01:14 PM
making a db field link on a page doranaz Classic ASP Databases 0 December 19th, 2003 01:13 PM





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