I don't even know what it is called. I am looking for a script that just like www.ask.com.
When we peel the left hand side of the top, it will open a selection box. Any help will be appreciated. Thanks.
I don't even know what it is called. I am looking for a script that just like www.ask.com.
When we peel the left hand side of the top, it will open a selection box. Any help will be appreciated. Thanks.
Last edited by newest; 02-03-2009 at 04:03 PM.
Something like this?:
Code:<html> <head> <title>Peel</title> <style type="text/css"> * { margin: 0; padding: 0; } #block { border: 5px solid #27B717; width: 200px; height: 60px; background: #FFF; font-size: 14px; font-family: arial, verdana; margin: 500px; padding-top: 40px; font-weight: bold; text-align: center; visibility: hidden; } </style> <script type="text/javascript"> var $ = function(el){ return document.getElementById(el); } var visible = function(){ for(i=0;i<arguments.length;i++){ $(arguments[i]).style.visibility = ($(arguments[i]).style.visibility == 'visible') ? 'hidden' : 'visible'; } }; </script> </head> <body> <img src="http://www.driedfruitguy.com/organic/images/banana1.jpg" height="100px" onclick="visible('block');"/> <div id="block"> Peeled! </div> </body> </html>
Jeremy | jfein.net
Thanks for your reply.
I think some codes may be missing here. I want when I click on an image, the image will change to another image, and open a box. Just like the www.ask.com. Thanks
Ok, I'm glad to help you. If you want exactly what ask.com has - use my first script, and in the "box" div at the style switcher.
Your welcome.![]()
Jeremy | jfein.net
newest (01-28-2009)
Thanks a lot
This is the kind of “Peel” script that I want to know the code: http://adbux.org/
This is a cool effect, a real peel effect, not just a box. Anyone kindly has the correct codes? I’ll appreciate it a lot. Thanks in advance.
That's not true. You can say that about anything. With the proper commitment, you can learn ActionScript in a reasonable time. It's no harder to learn that JavaScript.
In any case, this doesn't require much ActionScript at all.
If you want to just buy something or if you don't have Adobe Flash, Flashden has a couple of these that are pretty good. You can also Google for "page peel" or something similar and come up with some good tutorials.
amazingip (01-30-2009)
Bookmarks