How do you replace links? |
![]() ![]() |
How do you replace links? |
![]()
Post
#1
|
|
![]() Newbie ![]() Group: Member Posts: 9 Joined: Mar 2004 Member No: 9,865 ![]() |
Hi.. I was wondering if there was a code out there that replaced the actual link of some text? .. I was playing around with the replace text code.. and it actually worked in Firefox, but in IE, the replacing didn't work out too well.. ~_~;; ..
.. Does anyone know a code by any chance which would allow me to replace a link? .. I would like to incorporate links into my subscriptions module of people who have non-xanga blogs.. Thanks a lot! I tried searching around the site, but I couldn't find a code for this.. ;_; .. |
|
|
![]()
Post
#2
|
|
Tu es laid. ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Member Posts: 3,913 Joined: Feb 2005 Member No: 106,675 ![]() |
uhh try this??
<a href= URL OF LINK >NAME OF LINK</a> and for the subs try this http://www.createblog.com/forums/index.php?showtopic=58327 ![]() |
|
|
![]()
Post
#3
|
|
![]() Newbie ![]() Group: Member Posts: 9 Joined: Mar 2004 Member No: 9,865 ![]() |
The code you showed me is the one I used to replace the text of the links, but I was hoping to change the actual URL the text was directing to.. I'm sorry.. I didn't quite understand what you meant with the first code..?
I have tried doing .. else if (str.match (/name/i)) links[l].innerHTML = str.replace (/name/i, "<a href=blah.com>new name</a>"); .. and the replaced stuff actually worked in Firefox, but it messed up in IE .. x_X; .. help please? =X Thanks so much for trying ^-^ .. I reallie appreciate it. |
|
|
![]()
Post
#4
|
|
Tu es laid. ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Member Posts: 3,913 Joined: Feb 2005 Member No: 106,675 ![]() |
umm i dont understand.. so you want a code that replace the url but not the text?? uhh if there are any examples please show me cuz im kinda confused..
![]() |
|
|
![]()
Post
#5
|
|
![]() Newbie ![]() Group: Member Posts: 9 Joined: Mar 2004 Member No: 9,865 ![]() |
Yeah.. I'd like to change the URL .. and the text.. I guess too.. ^^;; .. I haven't seen this implemented in a Xanga before.. so I was wondering if there was even a code out there which could do this.. >_>;;
Thanks a lot ^_^;;; |
|
|
![]()
Post
#6
|
|
![]() she who rocketh thou sockeths ![]() ![]() ![]() ![]() Group: Member Posts: 271 Joined: Aug 2004 Member No: 43,478 ![]() |
Well if you want it for your subscriptions, you could make a custom subs module (of course, you'd have to do each link like the below). Then you add your own links using what azn.peace.maker said:
<a href= URL OF LINK >NAME OF LINK</a> |
|
|
![]()
Post
#7
|
|
![]() say maydayism. ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Staff Alumni Posts: 7,447 Joined: Jun 2004 Member No: 26,344 ![]() |
|
|
|
![]() ![]() |