Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Video on Demand anybody


clairecharel

Recommended Posts

Posted

I have asked this question three times recently, and still not had a reply :-(

 

I want to add an image to my front page of oscommerce - which when clicked on will start a 2 min video that I have

 

My question :-

I have the image, i have the video, I know where to paste the code

 

BUT - How would the code look ?

In other words what sort of script would I write in order to have the video file play upon click of image

 

I have the script below but it does not work as I want it to - Obviously, I have something wrong

 

Any help would be most appreciated

Claire

 

 

<A class=a HREF="Untitled_1/salta video.MPG" NAME="#salta video.MPG">

<IMG SRC="goinghome/salta.jpg" WIDTH=200 HEIGHT=150 BORDER=0>

 

 

<DIV ID="VIDOBJ7D7C5EA0104E2" STYLE=" position:absolute; top:119px; left:365px; width:278px; height:240px; z-index:1;">

<OBJECT ID="MMPlayer1" WIDTH=278 HEIGHT=240 classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">

<PARAM NAME="FileName" VALUE="_RefFiles/salta video.MPG">

<PARAM NAME="ShowControls" VALUE="1">

<PARAM NAME="ShowStatusBar" VALUE="1">

<PARAM NAME="ShowDisplay" VALUE="0">

<PARAM NAME="Autostart" VALUE="1">

<PARAM NAME="PlayCount" VALUE="FALSE">

<Embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/download/default.asp" src="_RefFiles/salta video.MPG" Name=MMPlayer1 Autostart=1 ShowControls=1 ShowDisplay=0 ShowStatusBar=1 PlayCount=FALSE width=278 height=240>

</embed>

</OBJECT>

</DIV>

Life is the greatest gift there is - Make the most of yours

Posted

sorry just curious why do you need an image to have the video play?

either set it to auto play or just leave it so people click the "play" button

forgive me if this is not the answer you were looking for but can't help but wonder

Santa's little freelancer

Posted
sorry just curious why do you need an image to have the video play?

either set it to auto play or just leave it so people click the "play" button

forgive me if this is not the answer you were looking for but can't help but wonder

 

 

On this website I am selling 3 discs

What I will be doing eventually is adding 3 images of each film and upon click a small snippet of that film plays

The discs are tutorials on computer building, networking etc

Life is the greatest gift there is - Make the most of yours

Posted
On this website I am selling 3 discs

What I will be doing eventually is adding 3 images of each film and upon click a small snippet of that film plays

The discs are tutorials on computer building, networking etc

 

ok here's one way of doing it:

 

have your linked-image open a pop up window in which the video auto plays.

I was gonna give you the code here but it has some javascript and the line is too long for the thread here and as it won't work if the line breaks it's useless to paste it here since the forum doesn't allow long lines of text(it breaks them in to several lines) but here's a site you can use for this matter:

 

http://embedthevideo.com/

 

it will generate the code for you to do just what I said.

Santa's little freelancer

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...