Replacing a Line

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
techkid
Forum Commoner
Posts: 54
Joined: Sat Sep 05, 2009 11:18 pm
Location: Maldives

Replacing a Line

Post by techkid »

Hi.

Can anyone Help me to do this, what I want do is.

Replace this line:

Code: Select all

<div class="uniquevalue">
With:

Code: Select all

<div class="uniquevalue" style="border:1px solid #ccc">
Here is a example of what I want to do.

Code: Select all

<html>
<head>
//some javascript code to replace the line
</head>
<body onload="replacetext();">
<div class="uniquevalue"> //line to be changed 
//some content
</div>
</body>
<html>
By change I don't mean that changing the line which should be seen in the source code. What I want to do is, while page is shown, show the inline css which I've applied.

Thank you.
thecodewall
Forum Commoner
Posts: 33
Joined: Sun Dec 26, 2010 8:37 am

Re: Replacing a Line

Post by thecodewall »

try this tutorial.
http://codewall.blogspot.com/2011/01/ch ... cript.html

codewall.blogspot.com
Post Reply