Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: How do they make it?

  1. #1
    Join Date
    Jan 2009
    Posts
    15
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default How do they make it?

    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.

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    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

  3. #3
    Join Date
    Jan 2009
    Posts
    15
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Nile View Post
    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>

    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

  4. #4
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    I made a peal script like the one displayed on ask - do you want the style switcher one? If so, I'm pretty sure this will be good for you.
    Jeremy | jfein.net

  5. #5
    Join Date
    Jan 2009
    Posts
    15
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Nile View Post
    I made a peal script like the one displayed on ask - do you want the style switcher one? If so, I'm pretty sure this will be good for you.
    Thank you very much. That is what I want. Thanks.

  6. #6
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    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

  7. The Following User Says Thank You to Nile For This Useful Post:

    newest (01-28-2009)

  8. #7
    Join Date
    Jan 2009
    Posts
    15
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    Thanks a lot

  9. #8
    Join Date
    Jan 2009
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    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.

  10. #9
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    That uses flash animation, and an image... I can't tell you how to make that.

    But you can "Try" flash and mess around with it to get that effect... Although flash can sometimes take years to learn.
    Jeremy | jfein.net

  11. #10
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Quote Originally Posted by Nile View Post
    Although flash can sometimes take years to learn.
    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.

  12. The Following User Says Thank You to Medyman For This Useful Post:

    amazingip (01-30-2009)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •