Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

noobSlide sample7 won't work

Featured Replies

Hi all.

I know this is already the 3d post about noobSlide, but i read the previous posts tried to play with some js but i still can't figure out how it properly works.

I want to create sample 7.

So basically what i did was; Copy the java script(sample 7) to the <head> of my html file. After that i copied the html to the body(sample 7).

All the files are in one folder on the desktop.

I also download the mootools-1.2.2-core-yc.js.txt plug in but can't really understand what it's for.

 

Here are the codes im using.

 

 

<me<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>ta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<script type="text/javascript" src="mootools-1.2-core.js"></script>
<script type="text/javascript" src="_class.noobSlide.packed.js"></script>
<script type="text/javascript">
var startItem = 3; //or   0   or any
	var thumbs_mask7 = $('thumbs_mask7').setStyle('left',(startItem*60-568)+'px').set('opacity',0.8);
	var fxOptions7 = {property:'left',duration:1000, transition:Fx.Transitions.Back.easeOut, wait:false}
	var thumbsFx = new Fx.Tween(thumbs_mask7,fxOptions7);
	var nS7 = new noobSlide({
		box: $('box7'),
		items: [0,1,2,3,4,5,6,7],
		handles: $$('#thumbs_handles7 span'),
		fxOptions: fxOptions7,
		onWalk: function(currentItem){
			thumbsFx.start(currentItem*60-568);
		},
		startItem: startItem
	});
	//walk to first with fx
	nS7.walk(0);
	</script>
</head>

<body>
<h2>Sample 7</h2>
<div class="sample">
<div class="mask6">
	<div id="box7">
		<span><img src="img1.jpg" alt="Photo" /></span>
		<span><img src="img2.jpg" alt="Photo" /></span>
		<span><img src="img3.jpg" alt="Photo" /></span>
		<span><img src="img4.jpg" alt="Photo" /></span>
		<span><img src="img5.jpg" alt="Photo" /></span>
		<span><img src="img6.jpg" alt="Photo" /></span>
		<span><img src="img7.jpg" alt="Photo" /></span>
		<span><img src="img8.jpg" alt="Photo" /></span>
	</div>
</div>

<div id="thumbs7">
	<div class="thumbs">
		<div><img src="img1.jpg" alt="Photo Thumb" /></div>
		<div><img src="img2.jpg" alt="Photo Thumb" /></div>
		<div><img src="img3.jpg" alt="Photo Thumb" /></div>
		<div><img src="img4.jpg" alt="Photo Thumb" /></div>
		<div><img src="img5.jpg" alt="Photo Thumb" /></div>
		<div><img src="img6.jpg" alt="Photo Thumb" /></div>
		<div><img src="img7.jpg" alt="Photo Thumb" /></div>
		<div><img src="img8.jpg" alt="Photo Thumb" /></div>
	</div>

	<div id="thumbs_mask7"></div>

	<p id="thumbs_handles7">
		<span></span>
		<span></span>
		<span></span>
		<span></span>
		<span></span>
		<span></span>
		<span></span>
		<span></span>
	</p>
</div>
</div>


</body>
</html>

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.