Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 1 of 1
  1. #1
    Senior Member
    Join Date
    May 2003
    Location
    UK
    Posts
    2,354
    Member #
    1326
    For a client of mine, they have a page where a video is displayed and can be watched. Below them, they want to have "thumbnails" if you like, which when clicked on will change the video in the main area.

    I have wrapped the object / embed code in suitable <a></a> tags with a href = # (for testing) with an onclick call to a JS function. That function never fires, when I click on a video it just plays in the small thumbnail spot and not the larger viewing area.

    So, in short: How do I

    A) Stop the video from playing when clicked on (I know this is the standard behaviour but...)
    B) Get the <a></a> to actually work.

    The reason why I am using <object> and <embed> is because the client wants to see an image of the video and not just a textual link, the object and embed do that out of the box.

    Cheers

    HTML Code:
    <div><a href="http://google.co.uk" onclick="javascript: func();"><object width="100" height="100"><param name="movie" value="http://www.youtube.com/video=123"></param><param name="allowFullScreen" value="false"></param><embed src="http://www.youtube.com/video=123" type="application/x-shockwave-flash" allowfullscreen="false" width="100" height="100"></embed></a></object></div>

  2.  


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 02:52 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com