Click here to Skip to main content
15,881,248 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: primitive http server Pin
Marc Firth28-Jul-09 2:35
Marc Firth28-Jul-09 2:35 
AnswerRe: primitive http server Pin
Super Lloyd28-Jul-09 2:41
Super Lloyd28-Jul-09 2:41 
AnswerRe: primitive http server Pin
nastytoe30-Jul-09 12:04
nastytoe30-Jul-09 12:04 
QuestionProblem with "Show more" in auto-suggest Pin
sandeep@uhuroo.com27-Jul-09 23:34
sandeep@uhuroo.com27-Jul-09 23:34 
AnswerRe: Problem with "Show more" in auto-suggest Pin
Marc Firth28-Jul-09 0:43
Marc Firth28-Jul-09 0:43 
GeneralRe: Problem with "Show more" in auto-suggest Pin
sandeep@uhuroo.com28-Jul-09 2:18
sandeep@uhuroo.com28-Jul-09 2:18 
GeneralRe: Problem with "Show more" in auto-suggest Pin
Marc Firth28-Jul-09 2:30
Marc Firth28-Jul-09 2:30 
QuestionWindows Media Player in Firefox [modified] Pin
aqui_i27-Jul-09 22:05
aqui_i27-Jul-09 22:05 
sorry if this was discussed before. but i have to ask this question again.

I have a windows media player on my site. It's working fine with IE but not in firefox. I used javascript to play a video when the image is clicked.
here is my code. im getting an error document.getElementById("player").controls is undefined

Javascript Code:
<script language="javascript">
var forcepage = false;
var forcepagediv = '';
function changepage(page){
//alert(page);
var divwatch, divsynopsis, divreview, divrating, divemail,divrating2, divppv;
var imgwatch, imgsynopsis, imgreview, imgrating, imgemail, imgppv;
divwatch = document.all['divwatch'];
divsynopsis = document.all['divsynopsis'];
divreview = document.all['divreview'];
divrating = document.all['divrating'];
divemail = document.all['divemail'];
divrating2 = document.all['divrating2'];
divppv = document.all['divppv'];

imgwatch = document.all['imgwatch'];
imgsynopsis = document.all['imgsynopsis'];
imgreview = document.all['imgreview'];
imgrating = document.all['imgrating'];
imgemail = document.all['imgemail'];
imgppv = document.all['imgppv'];

if (divwatch && divsynopsis && divreview && divrating && divemail && divrating2 && divppv
&& imgwatch && imgsynopsis && imgreview && imgrating && imgemail && imgppv){

divwatch.style.display = 'none';
divsynopsis.style.display = 'none';
divreview.style.display = 'none';
divrating.style.display = 'none';
divemail.style.display = 'none';
divrating2.style.display = 'none';
divppv.style.display = 'none';

imgwatch.src = 'imgs-movies/watchnow2.jpg';
imgsynopsis.src = 'imgs-movies/but-synopsis.jpg';
imgreview.src = 'imgs-movies/but-review.jpg';
imgrating.src = 'imgs-movies/but-userrating.jpg';
imgemail.src = 'imgs-movies/but-tellfriend.jpg';
imgppv.src = 'imgs-movies/but-ppvbasis.jpg';

switch(page){
case 'watch':
divwatch.style.display = 'inline';
imgwatch.src = 'imgs-movies/watchnow1.jpg';
break;
case 'synopsis':
divsynopsis.style.display = 'inline';
imgsynopsis.src = 'imgs-movies/but-synopsis-on.jpg';
break;
case 'review' :
divreview.style.display = 'inline';
imgreview.src = 'imgs-movies/but-review-on.jpg';
break;
case 'rating' :
divrating.style.display = 'inline';
divrating2.style.display = 'inline';
imgrating.src = 'imgs-movies/but-userrating-on.jpg';
break;
case 'email' :
divemail.style.display = 'inline';
imgemail.src = 'imgs-movies/but-tellfriend-on.jpg';
break;
case 'ppv' :
divppv.style.display = 'inline';
imgppv.src = 'imgs-movies/but-ppvbasis-on.jpg';
break;
default :
divwatch.style.display = 'inline';
imgwatch.src = 'imgs-movies/watchnow1.jpg';
break;
}
}
}

function change(){
changepage('watch');

if(-1 != navigator.userAgent.indexOf('MSIE'))
{
document.getElementById('ForTheFirstTime').controls.play();

}
else if(-1 != navigator.userAgent.indexOf('Firefox'))
{
document.getElementById('ForTheFirstTime2').controls.play();
}
}


</script>


Windows Media Player Code:
<OBJECT id="ForTheFirstTime" style="WIDTH: 500px; HEIGHT: 363px" type="application/x-oleobject"
height="363" width="500" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" VIEWASTEXT>
<PARAM NAME="URL" VALUE="http://url.asx">
<PARAM NAME="rate" VALUE="1">
<PARAM NAME="balance" VALUE="0">
<PARAM NAME="currentPosition" VALUE="0">
<PARAM NAME="defaultFrame" VALUE="">
<PARAM NAME="playCount" VALUE="1">
<PARAM NAME="autoStart" VALUE="0">
<PARAM NAME="currentMarker" VALUE="0">
<PARAM NAME="invokeURLs" VALUE="-1">
<PARAM NAME="volume" VALUE="100">
<PARAM NAME="mute" VALUE="0">
<PARAM NAME="uiMode" VALUE="full">
<PARAM NAME="stretchToFit" VALUE="0">
<PARAM NAME="windowlessVideo" VALUE="0">
<PARAM NAME="enabled" VALUE="-1">
<PARAM NAME="enableContextMenu" VALUE="-1">
<PARAM NAME="fullScreen" VALUE="0">
<PARAM NAME="enableErrorDialogs" VALUE="0">
<embed type="application/x-mplayer2" name="ForTheFirstTime2" id="ForTheFirstTime2" width='500' height='363' src='http://url.asx'
controller="true" displaysize="4" autostart="false" showstatusbar='1' playeveryframe="false"
pluginspage='https://www.microsoft.com/Windows/'>
</OBJECT>

modified on Tuesday, July 28, 2009 4:22 AM

AnswerRe: Windows Media Player in Firefox Pin
Marc Firth27-Jul-09 22:13
Marc Firth27-Jul-09 22:13 
GeneralRe: Windows Media Player in Firefox Pin
aqui_i27-Jul-09 22:25
aqui_i27-Jul-09 22:25 
GeneralRe: Windows Media Player in Firefox Pin
Marc Firth27-Jul-09 22:26
Marc Firth27-Jul-09 22:26 
GeneralRe: Windows Media Player in Firefox Pin
aqui_i27-Jul-09 23:47
aqui_i27-Jul-09 23:47 
GeneralRe: Windows Media Player in Firefox Pin
Marc Firth28-Jul-09 0:10
Marc Firth28-Jul-09 0:10 
GeneralRe: Windows Media Player in Firefox Pin
aqui_i28-Jul-09 19:03
aqui_i28-Jul-09 19:03 
GeneralRe: Windows Media Player in Firefox Pin
Abhishek Sur28-Jul-09 2:32
professionalAbhishek Sur28-Jul-09 2:32 
GeneralRe: Windows Media Player in Firefox Pin
aqui_i28-Jul-09 19:12
aqui_i28-Jul-09 19:12 
QuestionAccordion / Accordion pane OnClick event Pin
kKamel27-Jul-09 20:45
kKamel27-Jul-09 20:45 
AnswerRe: Accordion / Accordion pane OnClick event Pin
Marc Firth27-Jul-09 21:53
Marc Firth27-Jul-09 21:53 
GeneralRe: Accordion / Accordion pane OnClick event Pin
kKamel27-Jul-09 22:10
kKamel27-Jul-09 22:10 
GeneralRe: Accordion / Accordion pane OnClick event Pin
Marc Firth27-Jul-09 22:12
Marc Firth27-Jul-09 22:12 
GeneralRe: Accordion / Accordion pane OnClick event Pin
kKamel27-Jul-09 22:27
kKamel27-Jul-09 22:27 
Questiondisplay different in different browser Pin
Any_India27-Jul-09 19:07
Any_India27-Jul-09 19:07 
AnswerRe: display different in different browser Pin
Marc Firth27-Jul-09 21:46
Marc Firth27-Jul-09 21:46 
AnswerRe: display different in different browser Pin
Marc Firth27-Jul-09 21:49
Marc Firth27-Jul-09 21:49 
QuestionContent management system Pin
myinstincts27-Jul-09 15:51
myinstincts27-Jul-09 15:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.