Log In · Register

 
how to add script, background!!
rosedoll
post Apr 17 2006, 02:32 PM
Post #1


Senior Member
***

Group: Member
Posts: 78
Joined: Apr 2006
Member No: 391,072



i have this script here:
<script language=javascript>
var pic=new Array(5)
pic[0]=""
pic[1]=""
pic[2]=""
pic[3]=""
pic[4]=""
pic[5]=""
pic[6]=""
pic[7]=""

var newdate=new Date()
var getpic=newdate.getSeconds()%pic.length
document.write('<STYLE>')
document.write('body{ background-image: url('+pic[getpic]+');')
document.write(' background-repeat: no-repeat; ')
document.write('background-attachment: fixed; ')
document.write('background-position: 50% 100% }')
document.write('</STYLE>')
</script>

Is to random your backgrounds right?``i want one or two of my background pics to repeat and stf`` what and where do i add the "background-repeat: repeat;" to?
thankyou for helping``
 
 
Start new topic
Replies
OneOfTheseDayz
post Apr 18 2006, 12:12 PM
Post #2


Ill get around to doing that....
*****

Group: Member
Posts: 518
Joined: Oct 2005
Member No: 275,913



put the script in twice??????
 
rosedoll
post Apr 18 2006, 07:27 PM
Post #3


Senior Member
***

Group: Member
Posts: 78
Joined: Apr 2006
Member No: 391,072



QUOTE(drilotedahl @ Apr 18 2006, 10:12 AM) *
put the script in twice??????


=v=??"
 

Posts in this topic


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