HTML Tutorial


 /help/HTML Help Forum   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
replace Hyper links.
Post new topic   Reply to topic    HTML Help Forum -> General HTML
View previous topic :: View next topic  
Author Message
Zaphieon



Joined: 13 Oct 2009
Posts: 8

PostPosted: Mon Oct 26, 2009 7:54 pm     replace Hyper links. Reply with quote

ok heres what i want to do..

if the hyperlink does not have http:// in front of it I want to add http://www.mydomain.com to it for every hyperlink on the page automatically.
sticks464



Joined: 31 Dec 2006
Posts: 2906

PostPosted: Mon Oct 26, 2009 8:45 pm     Reply with quote

Here's how you do it with css;

The css
Code:
a:before {
   content: "http://www.mydomain.com/";
}


The html
Code:
<a href="#link">my link</a>
<a href="#link2">my link2</a>
<a href="#link3">my link3</a>


Makes an absolute link visible in the browser but does not insert any code into the html.
Zaphieon



Joined: 13 Oct 2009
Posts: 8

PostPosted: Mon Oct 26, 2009 8:57 pm     Reply with quote

that didn't work at all.. added the URL all over the site though lol

http://www.remax-inmotion.com/index2.php
Zaphieon



Joined: 13 Oct 2009
Posts: 8

PostPosted: Mon Oct 26, 2009 9:19 pm     Reply with quote

basically I need to add my domain name after each

src="
url="
href="

.....

so a link that looks like this

a href="images/pizza.jpg"
will come out like this
a href="www.mydomain.com/images/pizza.jpg"
sticks464



Joined: 31 Dec 2006
Posts: 2906

PostPosted: Tue Oct 27, 2009 3:55 am     Reply with quote

Limber up your fingers because you'll have to manually type all of them. TMK there is no script that adds content to the html automatically. Scripts are for dynamic presentation not markup.
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum -> General HTML All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
DARFUR
HOSTING / DESIGN

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial