Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Remove links from page
Old 08-24-2010, 05:59 AM Remove links from page
Nightmaster's Avatar
Average Talker

Posts: 26
Name: Nikola
Location: Serbia
Trades: 0
Hello there.

I would like to remove all links from my page, and want them to diplay just like the other text.
It is simply html/css page, so i would like to know if there is a way to display all links in that page just like text, withould href.

Regards.
Nightmaster is offline
Reply With Quote
View Public Profile Visit Nightmaster's homepage!
 
 
Register now for full access!
Old 08-24-2010, 06:46 AM Re: Remove links from page
Kelpie's Avatar
Skilled Talker

Posts: 82
Name: Andrew
Location: SW Scotland
Trades: 0
Not sure if you're wanting to remove the links, or just style them to look like they're not links.
To remove them, you just delete the anchor tags (<a> and </a>)
To style them, add the following to your stylesheet (change the color value to match the text color you're using)
Code:
a {
    text-decoration: none; /* gets rid of the undeline */
    color: #000000; /* makes them black */
}
Kelpie is offline
Reply With Quote
View Public Profile
 
Old 08-24-2010, 07:34 AM Re: Remove links from page
Nightmaster's Avatar
Average Talker

Posts: 26
Name: Nikola
Location: Serbia
Trades: 0
no, i want to remove links, to visitors cant click on them, but not to delete a href atributes, but to add some code or script that will disable links on that page, if thats possible.
Nightmaster is offline
Reply With Quote
View Public Profile Visit Nightmaster's homepage!
 
Old 08-24-2010, 09:32 AM Re: Remove links from page
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Why would you want to do that?
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 08-24-2010, 10:44 AM Re: Remove links from page
Nightmaster's Avatar
Average Talker

Posts: 26
Name: Nikola
Location: Serbia
Trades: 0
Lets say that i have file which i use public, and which i want to include on other page, but without links. Possible? :/
Nightmaster is offline
Reply With Quote
View Public Profile Visit Nightmaster's homepage!
 
Old 08-24-2010, 08:22 PM Re: Remove links from page
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,376
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Dead Easy
Code:
<script type="text/javascript">
	var allLinks = document.links;
	
	for(Li=0;Li<allLinks.length;Li++) {
		allLinks[Li].removeAttribute('href');
	}
</script>
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Remove links from page
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.05230 seconds with 12 queries