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
talcumpowder
post Apr 18 2006, 11:57 PM
Post #2


You'll find me in your dreams.
*******

Group: Official Member
Posts: 8,536
Joined: Mar 2005
Member No: 114,010



Can't do that. It has to be all or none. Otherwise it'd take a lot more Javascript coding which I don't wanna go into because I'm not entirely sure it's possible. -shrug- It would be fairly complicated though.
 
rosedoll
post Apr 19 2006, 12:28 AM
Post #3


Senior Member
***

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



QUOTE(fishcake-y @ Apr 18 2006, 9:57 PM) *
Can't do that. It has to be all or none. Otherwise it'd take a lot more Javascript coding which I don't wanna go into because I'm not entirely sure it's possible. -shrug- It would be fairly complicated though.



haha alrights..... thankyou xDDDD~~
 

Posts in this topic


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