Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
Thread Tools Display Modes
Share |
  #1  
Old 03-30-2016, 11:51 AM
Skyhawk Skyhawk is offline
Junior Member
 
Join Date: 05-13-09
Posts: 15
iTrader: 0 / 0%
How To Make A Video Clickable To Another URL

I sure hope this is the right place for this question. If not, I apologize and hope a mod will move it.

Anyway, I have videos that I have embedded into a website and I would like to find out if and how I can modify the code so that after it starts to play and the visitor clicks on the video again it opens to a different URL instead of pausing the video.

The code I am using is:
HTML Code:
<embed width="700" height="450" flashvars="image=path to website images/18.jpg&stretching=exactfit&width=700&height=450&fi le=path to video file&repeat=list&link=http%3A%2F%2FURL To Open When Clicked&linktarget=_blank&displayclick=link&autost art=false" src="path to flash player" type="application/x-shockwave-flash" allowscriptaccess="always" quality="high" allowfullscreen="true"/></embed>
The way it works now, I click on the image to start the video. The video plays,but when I click on it a second time, it just pauses the video.

I am trying to figure out how to get it to go to another url when the video is clicked on a second time.

I hope this makes sense.

I have done a search on Google, but can't find anything on it and I am far from an expert on this subject so any help would be appreciated. A guide as to how to do this would be great.

Thanks in advance
 
Reply With Quote

Advertisement

Advertisement

  #2  
Old 04-05-2016, 02:38 AM
Rob Schneider Rob Schneider is offline
Contributing Member
 
Join Date: 03-12-16
Posts: 105
iTrader: 0 / 0%
I am hoping to see someone reply here as i too am curious to know about this query as well.
 
Reply With Quote
  #3  
Old 04-13-2016, 07:32 PM
galaxy83's Avatar
galaxy83 galaxy83 is offline
Contributing Member
 
Join Date: 11-22-14
Location: localhost:80
Posts: 173
iTrader: 0 / 0%
Hi.

Add a image to the top of the video, and then add css code: <span style="padding-top:100px;"> Untill the image cover the video.

Have a great day!
 
Reply With Quote
  #4  
Old 04-25-2016, 06:53 AM
Mgeorge Mgeorge is offline
Junior Member
 
Join Date: 04-24-16
Posts: 3
iTrader: 0 / 0%
Is this a web page project?
 
Reply With Quote
  #5  
Old 05-23-2016, 05:56 AM
blizzardofozz blizzardofozz is offline
Junior Member
 
Join Date: 05-23-16
Posts: 22
iTrader: 0 / 0%
Make a link href="newrurl" - width and height >= video's width and height. Put this link over the embed tag using CSS. Maybe with position: absolute.

This can be done with javascript too. Add event listener for clicking the <embed> tag and use:

window.location = "newrurl";
 
Reply With Quote
  #6  
Old 06-13-2016, 03:07 PM
RyanVarnals's Avatar
RyanVarnals RyanVarnals is offline
Junior Member
 
Join Date: 06-10-16
Location: Oceanside, CA
Posts: 16
iTrader: 0 / 0%
Since you want the video to change functionality on click (first click plays, second click opens window), jQuery or Javscript would be your best bet. jQuery has an onclick function:
Code:
$( "embed" ).click(function() { ... });
 
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Clickable Skin Ads Ascari Marketing Forum 1 11-10-2014 03:21 AM
How to insert clickable link at youtube video yaseen4u Graphic Design Forum 4 06-26-2013 01:23 AM
[Help] How to make a 'Post Title' clickable at the Post page too? Aditya Dey Coding Forum 0 05-22-2013 07:42 AM
Menu not clickable in IE? maplenexus Coding Forum 5 07-17-2010 02:44 PM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 12:57 PM.
Powered by vBulletin
Copyright 2000-2014 Jelsoft Enterprises Limited.
Copyright © 2003 - 2018 VIX-WomensForum LLC