Log In · Register

 
weblog entry, how can i put a background?
ganqstab0o
post Oct 24 2004, 09:53 PM
Post #1


Member
**

Group: Member
Posts: 29
Joined: Sep 2004
Member No: 49,408



HI. i want to put a background on my entries..?! is that possible? if yes, what's the script ? thanks.
 
 
Start new topic
Replies (1 - 2)
sweetxsimplicity
post Oct 24 2004, 10:05 PM
Post #2


hi, my name is brianna! =]
*******

Group: Official Member
Posts: 5,764
Joined: Jun 2004
Member No: 22,114



This might work

Goes In Custom Header HTML
<style type="text/css">
.custom{background-image:url (URL HERE); background: #ffffff;}
</style>

Goes In Website Stats

CODE
<!-- begin code provided by createblog.com -->
<script>
var tds = document.getElementsByTagName ('a');
for (var i = 0; i < tds.length; i++) {
timeString = tds[i].innerText;
if(timeString.match(/\d+:\d+ [ap]m\b/i)){
if(!tds[i].parentNode.parentNode.parentNode.parentNode.parentNode.tagName.match(/table/i)){break;}
table = tds[i].parentNode.parentNode.parentNode.parentNode.parentNode;
stuff = tds[i].parentNode.parentNode.parentNode.previousSibling.lastChild;
inner = stuff.innerHTML
stuff.innerHTML="";
stuff.insertAdjacentHTML('afterBegin','<div class="custom">'+inner+'</div>');

}
}
</script>
<!-- end code provided by createblog.com -->
 
ganqstab0o
post Oct 25 2004, 08:43 PM
Post #3


Member
**

Group: Member
Posts: 29
Joined: Sep 2004
Member No: 49,408



thanks giirl..i appreciate the help.. i'll try it now.. GOD BLESS
 

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: