MyBB Community Forums

Full Version: Text and Image Crawler
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Please can someone improve this code to works in Mybb

http://www.dynamicdrive.com/dynamicindex.../index.htm
Moved. Once again this isn't a part of MyBB, so please post in the correct forum in the future.
Where do you want this code to use? In attachment thumbnails ??
nope on index page only like slideshow and news
It wouldn't be difficult. Just paste the code they're providing and add in index template. You've to edit the code slightly as well just where the img tags are.
nope not works with mybb

marquee not works
It should, if you've installed (edited template) correctly.
(2012-05-18, 06:22 PM)Yaldaram Wrote: [ -> ]It should, if you've installed (edited template) correctly.

yes i do

first add this code in headerinclude

<script type="text/javascript" src="crawler.js">
/* Text and/or Image Crawler Script v1.5 (c)2009-2011 John Davenport Scheuer
   as first seen in http://www.dynamicdrive.com/forums/
   username: jscheuer1 - This Notice Must Remain for Legal Use
   updated: 4/2011 for random order option, more (see below)
*/

</script>

After that add second ones in header or index,but marquee not works

<div class="marquee" id="mycrawler">
Those confounded friars dully buzz that faltering jay. An appraising tongue acutely causes our courageous hogs. Their fitting submarines deftly break your approving improvisations. Her downcast taxonomies actually box up those disgusted turtles.
</div>

<script type="text/javascript">
marqueeInit({
	uniqueid: 'mycrawler',
	style: {
		'padding': '5px',
		'width': '450px',
		'background': 'lightyellow',
		'border': '1px solid #CC3300'
	},
	inc: 8, //speed - pixel increment for each iteration of this marquee's movement
	mouse: 'cursor driven', //mouseover behavior ('pause' 'cursor driven' or false)
	moveatleast: 4,
	neutral: 150,
	savedirection: true
});
</script>



<div class="marquee" id="mycrawler2">
<img src="http://img42.imageshack.us/img42/6331/beachgl.jpg" /> <img src="http://img222.imageshack.us/img222/8854/waterox.jpg" /> <img src="http://img405.imageshack.us/img405/7314/cocovv.jpg" /> <img src="http://img853.imageshack.us/img853/5038/bonsaiy.jpg" />
</div>

<script type="text/javascript">
marqueeInit({
	uniqueid: 'mycrawler2',
	style: {
		'padding': '2px',
		'width': '600px',
		'height': '180px'
	},
	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>