close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Blind/slide effect- start closed

Thread began 2/05/2010 7:47 pm by dieu_fera400337 | Last modified 3/02/2010 12:40 pm by Jason Byrnes | 5414 views | 5 replies |

dieu_fera400337

Blind/slide effect: redirect or change position

Hello All,

I was very encouraged by your previous entries, and hope that someone can shed light on my issue.

I am using the blind effect for opening and closing a portion of my web page, but I can not seem to control how this portion looks when you first open the page. To clarify further: When I load the page the portion is shown and upon clicking it, it then hides. I would like to create exactly the opposite effect. When I click it, it should show the portion.

I also tried this with the slide effect, and came across the same issue.

My current code:

First:
<!--
function MM_effectBlind(targetElement, duration, from, to, toggle)
{
Spry.Effect.DoBlind(targetElement, {duration: duration, from: from, to: to, toggle: toggle});
}
//-->
</script>


Then:

<div id="slider" onclick="MM_effectBlind(this, 1000, '100%', '10%', false)">


Thank you for your help in advance!

P.S. As a bit more of a challenge, what I would really love to do is to apply this effect to a button in my navigation bar. I gave up on this idea, but if you can figure out how to make a portion of the page move up and down when they click this button I would greatly appreciate it!

Sign in to reply to this post

Jason ByrnesWebAssist

see the Spry Blind sample page here:
blind_sample.html

  The target element can initially be hidden. To hide an element you can use one of two CSS properties: display and visibility. The difference between these two properties is the way it will alter the flow of the page. While using the display: none; the element is completelly removed from page and the other elements take its place on the page. The visibility: hidden will leave the element in the page flow but the element is simply not seen.

In the following sample we will use the visibility: none; to initially hide the element and using the Blind effect, the element will appear on the page.

<style type="text/css">
.animationContainer{
height: 220px;
}
.hideInitially{
visibility: hidden;
}
</style>
...
<form method="get" action="blinds_sample.html">
<input type="button" onclick="blind_hidden.start();" value="Blind Example Hidden" />
</form>

<div class="animationContainer">
<div class="hideInitially" id="slideItDown_hidden">
...
</div>
</div>

<script type="text/javascript">
var blind_hidden = new Spry.Effect.Blind("slideItDown_hidden", {duration: 2000, from: '0%', to: '100%', toggle: true});
</script>  
Sign in to reply to this post

eng_amoonah402003

hello

sorry but i take your code and put them in mysite
it appear error
that is
Error: 'Spry' is undefined

What is the solution to this problem??

Thanks

Sign in to reply to this post

Miguel

because your missing the spry librarys on your server example on the head should be something similiar to

<link href="../../css/samples.css" rel="stylesheet" type="text/css" />
<script src="../../includes/SpryEffects.js" type="text/javascript"></script>

Sign in to reply to this post

eng_amoonah402003

problem is still existing

Error: 'blind_hidden' is undefined

please give me the complete code?

thanks

Sign in to reply to this post

Jason ByrnesWebAssist

The spry sample page should have all you need:
blind_sample.html


If you zare having troubles, you should post in the Spry forums:
spry

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...