Post by Tiffy-Bean on Sept 23, 2015 8:38:06 GMT -8
thecityofsin.freeforums.net/
So, I got this working beautifully! (thank you so much). My only thing I need to adjust is I want to move the images down a little and can't figure out how. I want them centered in the background box but every time I try to margin it down it doesn't work. How do I move the whole marquee down to center it?
I lied. I broke it. what'd I do. Halllp..-falls over under code-
now it's repeating itself one over the other when I added in extra images.
So, I got this working beautifully! (thank you so much). My only thing I need to adjust is I want to move the images down a little and can't figure out how. I want them centered in the background box but every time I try to margin it down it doesn't work. How do I move the whole marquee down to center it?
I lied. I broke it. what'd I do. Halllp..-falls over under code-
now it's repeating itself one over the other when I added in extra images.
<style>
/*the width needs to be set at least as wide as all the images combined*/
#scroller_wrapper{
width:relative; height:250px;
margin:auto;background:rgba(0, 0, 0, .5);
}
/*this is the div around the text needed for pixel width to center/position text*/
.my_text {
margin:auto;position:relative;
top:-20px; width:140px; background: black;
text-align:center; padding:5px;
font-size:10px;
margin-top:-15px;
}
/*the first image text needed special alignment*/
#my_image1 .my_text{
margin-left: 9px;
}
/*makes the images go in a row*/
#my_image1,#my_image2,
#my_image3,#my_image4, #my_image5,#my_image6,
#my_image7,#my_image8,
#my_image9,#my_image10,
#my_image11,#my_image12,
#my_image13,#my_image14,
#my_image15,#my_image16{display:inline-block;
}
/*this first image needs slightly different margins*/
#my_image1 img{
position:relative;top:5px;
width:relative;
height:235px;
border:4px solid black;
padding:2px;
margin:0px 4px 0px 0px;
}
/*all other image div id's except the first one go here*/
#my_image2 img,#my_image3 img,#my_image4 img,#my_image5 img,#my_image6 img,#my_image7 img,#my_image8 img,#my_image9 img,#my_image10 img,#my_image11 img,#my_image12 img,#my_image13 img,#my_image14 img,#my_image15 img,#my_image16 img{
position:relative;top:5px;
width:relative;
height:235px;
border:4px solid black;
padding:2px;
margin:0px 2px 0px 2px;
}
/*your link color*/
.my_text a{
color:#fff;
}
</style>
<div id="scroller_wrapper">
<!--*adjust the marqueed div below in the jquery-->
<div class="marquee" id="mycrawler2">
<div id="my_image1"><img src="http://i.imgur.com/6tkVR7V.jpg" />
<div class="my_text"><a href="http://thecityofsin.freeforums.net/user/48">Izabetta DiNatale</a><br>Most Active</div>
</div>
<div id="my_image2"><img src="http://i.imgur.com/8RoqY05.jpg" />
<div class="my_text"><a href="http://thecityofsin.freeforums.net/user/2/">Dimitrius King</a><br>Best Villain</div>
</div>
<div id="my_image3"><img src="http://i.imgur.com/6h9ogEt.jpg" />
<div class="my_text"><a href="http://thecityofsin.freeforums.net/user/10">Angeles</a> and <a href="http://thecityofsin.freeforums.net/user/5">Dylan Keaton</a><br>Soulmates</div>
</div>
<div id="my_image4"><img src="http://i.imgur.com/YsKSEBe.jpg" />
<div class="my_text"><a href="http://thecityofsin.freeforums.net/user/15">Zathen Blaine</a><br>Most Adorable|Trouble Maker</div>
</div>
<div class="my_image5"><img src="http://i.imgur.com/6gcwvWx.jpg" />
<div class="my_text"> <a href="http://thecityofsin.freeforums.net/user/39">Elena DaSilva</a><br>Trouble Maker</div>
</div>
<div class="my_image6"><img src="http://i.imgur.com/p0QYUqx.jpg" />
<div class="my_text"> <a href="http://thecityofsin.freeforums.net/user/4">Juliet Slade</a><br>Trouble Maker</div>
</div>
<div class="my_image7"><img src="http://i.imgur.com/4hGwFuu.jpg" />
<div class="my_text"> <a href="http://thecityofsin.freeforums.net/user/8">Layla Bishop</a><br>Trouble Maker</div>
</div>
<div class="my_image8"><img src="http://i.imgur.com/wvdfRxm.jpg" />
<div class="my_text"> <a href="http://thecityofsin.freeforums.net/user/79">Alice Lyddell</a><br>Royal Snob</div>
</div>
<div class="my_image9"><img src="http://i.imgur.com/8vFK8Be.jpg" />
<div class="my_text"> <a href="http://thecityofsin.freeforums.net/user/49">Arrias Hearst</a><br>Royal Snob</div>
</div>
<div class="my_image10"><img src="http://i.imgur.com/Besjf0D.jpg" />
<div class="my_text"> <a href="http://thecityofsin.freeforums.net/user/7">Claire Monroe</a><br>Royal Snob</div>
</div>
<div class="my_image11"><img src="http://i.imgur.com/ywnTOIZ.jpg" />
<div class="my_text"> <a href="http://thecityofsin.freeforums.net/user/9">Verias de Starling</a><br>Royal Snob</div>
</div>
<div class="my_image12"><img src="http://i.imgur.com/JL7q7HB.jpg" />
<div class="my_text"> <a href="http://thecityofsin.freeforums.net/user/67">Adrian de la Fontaine</a><br>Plot Shaker</div>
</div>
<div class="my_image13"><img src="http://i.imgur.com/CtnFx5j.png" />
<div class="my_text"> <a href="http://thecityofsin.freeforums.net/user/94">Andrew Fisher</a><br>Plot Shaker</div>
</div>
<div class="my_image14"><img src="http://i.imgur.com/CZ2RpQ6.jpg" />
<div class="my_text"> <a href="http://thecityofsin.freeforums.net/user/56">Chancellor Constigen</a><br>Plot Shaker</div>
</div>
<div class="my_image15"><img src="http://i.imgur.com/WQeKxzP.jpg" />
<div class="my_text"> <a href="http://thecityofsin.freeforums.net/user/3">Gaia</a> and <a href="http://thecityofsin.freeforums.net/user/2">Dimitrius King</a><br>Soulmates</div>
</div>
<div class="my_image16"><img src="http://i.imgur.com/PomnAVp.jpg" />
<div class="my_text"> <a href="http://thecityofsin.freeforums.net/user/14">Wednesday</a> and <a href="http://thecityofsin.freeforums.net/user/17">Bryce Gibson</a><br>Soulmates</div>
</div>
</div>
</div>
<br /><br />
<script type="text/javascript">
marqueeInit({
uniqueid: 'mycrawler2',
style: {
'padding': '2px',
'width': 'relative',
'height': '235px',
'margin': 'auto'
},
inc: 5, //speed - pixel increment for each iteration of this marquee's movement
mouse: 'cursor driven', //mouseover behavior ('pause' 'cursor driven' or false)
moveatleast: 2,
neutral: 150,
savedirection: true,
random: true
});
</script>