Page 1 of 1

Replacing a Line

Posted: Tue Jan 18, 2011 1:30 pm
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.

Re: Replacing a Line

Posted: Tue Jan 18, 2011 9:27 pm
by thecodewall
try this tutorial.
http://codewall.blogspot.com/2011/01/ch ... cript.html

codewall.blogspot.com