Hot!Ajax

  • Increase font size
  • Default font size
  • Decrease font size
  • default color
  • black color

Gsearch

Google
Home arrow mootools arrow mooslide
mooslide
User Rating: / 5
PoorBest 
Monday, 04 February 2008

A slider for mootools with support for additional html tags and images that slide from the bottom of the screen upwards.

 From:http://www.artviper.net/test/ajaxslide/

DEMO

Download: MooSlide (125.92 kB)

Implementation

  • HEAD:
<p><SCRIPT src="mint" type=text/javascript></SCRIPT>
<SCRIPT language=javascript src="mootools.js" type=text/ecmascript></SCRIPT>
</p>
<p><SCRIPT language=javascript src="slimbox.js" 
type=text/ecmascript></SCRIPT></p>
 
  • BODY:

To show the slider with an image, a heading and a sample text, you can call it this way:

<p><a href="http://www.hotajax.org/download/mootools/mooSlide/images/0.jpg
"rel="designSlide" rev="mycontent"title="Design Slide Sample::
There's some nice tool out there, and it just does
what it should - </p>it slides in an image with description and adds extra content
<p>rom a specified div">Slide</a></p>
 

To make the link a slideBox link, you need to add the tag rel="designSlide" to it. The slide can contain a heading and some text. Define it in your title tag of the link, separate the heading from the main text with a "::"

If you wish to have more content, or html tags like links in the displayed content area, you can specify another tag in your slideBox. SlideBox uses the "rev=" tag. Give your rev tag the name of the div that contains additional content. In this sample it's called rev="mycontent". This is the additional content
div:

<p><div id="mycontent"><a href="http://www.hotajax.org">
visit us at www.hotajax.org</a></div></p>
 

The div containing the additional content is automatically hidden when the page is loading.

works in IE 6/7, Opera and Firefox

Comments (1)add comment

Write comment

busy
 
< Prev   Next >