SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Zealot K's Avatar
    Join Date
    Oct 2007
    Posts
    177
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Image Marquee with clickable images...

    hi i was wondering what the code is for an image marquee, where by if you scroll on an image you can even click it so it becomes bigger...or when u scroll it makes it a bit bigger


    thanks

  2. #2
    SitePoint Wizard
    Join Date
    Dec 2003
    Location
    USA
    Posts
    2,582
    Mentioned
    29 Post(s)
    Tagged
    0 Thread(s)
    That would be a Javascript question, not a PHP question.

    Basically you would just use the on events (like onclick) and when it's performed you would change the <img> height and width values (or even better, change style.width and style.height).

  3. #3
    SitePoint Zealot K's Avatar
    Join Date
    Oct 2007
    Posts
    177
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    please link me to these features.

  4. #4
    SitePoint Wizard
    Join Date
    Dec 2003
    Location
    USA
    Posts
    2,582
    Mentioned
    29 Post(s)
    Tagged
    0 Thread(s)
    I don't know where a script that does this is, but it is quite simple to create.

    If you want to just use mouse clicks, you would have to have some button (or buttons) that toggle zoom in and zoom out. Then, on the <img> you would have an onclick which would increase or decrease it's size, depending on the state of the toggle button.

    If you want to use a mouse wheel, you could use code like this to get the mouse wheel input: http://adomas.org/javascript-mouse-wheel/

    Then, you would just zoom out (make <img> smaller) or zoom in (make <img> bigger) when the value changed.

  5. #5
    SitePoint Zealot K's Avatar
    Join Date
    Oct 2007
    Posts
    177
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks

    whats the basic code just for a marquee, so i can put images scrolling?

  6. #6
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,820
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  7. #7
    SitePoint Zealot K's Avatar
    Join Date
    Oct 2007
    Posts
    177
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    perfect thanks sir


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
  •