Log In · Register

 
Background Pic On An Entry
pureheart_tsai
post Oct 24 2004, 05:40 PM
Post #1


Member
**

Group: Member
Posts: 22
Joined: Aug 2004
Member No: 40,291



Hey what's the code to only put one picture as a background on an *entry*? Is there a way I can plug it into the entry, so there can be a different background for every entry? Thnx. :)
 
 
Start new topic
Replies
sweetxsimplicity
post Oct 24 2004, 06:07 PM
Post #2


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

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



Check "Edit HTML" and put this code in

CODE
<!-- begin code provided by createblog.com -->
<style type="text/css">
.custom{
background-image:url (URL HERE);
}</style>
<!-- end code provided by createblog.com -->


Put this script in your 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 -->
 

Posts in this topic


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