What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » General » General Chit Chat » Javascript Help [SOLVED!]

Javascript Help [SOLVED!]
Author: Message:
glennlopez
New Member
*


Posts: 6
Joined: Jun 2005
O.P. RE: RE: Javascript Help (pownce & joost invite reward)
quote:
Originally posted by scott2010_h
I think this is what you looking for
code:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<div id="poop">hello Wednesday</div>
<script language="javascript">
var element = document.getElementById("poop");
element.innerHTML = element.innerHTML.replace(/Wednesday/g, "Ooompa Loompa");
</script>
</body>
</html>
This code will replace all instances of Wednesday with Ooompa Loompa


dude, your the best! thanx, ill invite you to joost as soon as i open it :)

also... lol i dont meen to ask for milk but you think you could help me with this last one as well...

I need the same script to remove any numbers within that same div tag "poop".

18 August 2007 will turn into August
18 September 2006 will turn into Septeber
122 dDfs sstt eds 56 will turn into dDfs sstt eds
etc..

This post was edited on 08-18-2007 at 09:37 AM by glennlopez.
08-18-2007 09:27 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Javascript Help [SOLVED!] - by glennlopez on 08-18-2007 at 06:18 AM
RE: Javascript Help (pownce & joost invite reward) - by markee on 08-18-2007 at 06:39 AM
RE: Javascript Help (pownce & joost invite reward) - by glennlopez on 08-18-2007 at 07:18 AM
RE: Javascript Help (pownce & joost invite reward) - by scott2010_h on 08-18-2007 at 07:34 AM
RE: Javascript Help (pownce & joost invite reward) - by scott2010_h on 08-18-2007 at 08:33 AM
RE: Javascript Help (pownce & joost invite reward) - by glennlopez on 08-18-2007 at 09:01 AM
RE: Javascript Help (pownce & joost invite reward) - by scott2010_h on 08-18-2007 at 09:18 AM
RE: RE: Javascript Help (pownce & joost invite reward) - by glennlopez on 08-18-2007 at 09:27 AM
RE: Javascript Help (pownce & joost invite reward) - by scott2010_h on 08-18-2007 at 09:50 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On