Any HTML buffs online?
#1
Team HOTHOT!
Thread Starter
Any HTML buffs online?
I need to write a bit of HTML code, or use a javascript to do the following:
Click on a video link on my website, and then it launches in a new window, that is already sized for the video, and has the video control bar.
Cheers
Click on a video link on my website, and then it launches in a new window, that is already sized for the video, and has the video control bar.
Cheers
#2
Advanced PassionFord User
Join Date: May 2003
Location: Leicester
Posts: 1,864
Likes: 0
Received 0 Likes
on
0 Posts
Something along these lines should work, well on IE you'll need to double check Netscape, Firefox and the others.
<script language="JavaScript">
<!--
function PopUpWindow(theURL){
window.open(theURL, 'PopUpWindow',
'toolbar=no,
location=no,
directories=no,
status=no,
scrollbars=yes,
menubar=no,
width=320,
height=220');
}
//-->
</script>
<HTML>
Video Link
</HTML>
<script language="JavaScript">
<!--
function PopUpWindow(theURL){
window.open(theURL, 'PopUpWindow',
'toolbar=no,
location=no,
directories=no,
status=no,
scrollbars=yes,
menubar=no,
width=320,
height=220');
}
//-->
</script>
<HTML>
Video Link
</HTML>
#5
PassionFord Post Troll
Join Date: Jul 2003
Location: Wolverhampton
Posts: 3,058
Likes: 0
Received 0 Likes
on
0 Posts
Put this
Within the HEAD TAGS
And this
The the BODY
<script language="JavaScript">
<!--
function PopUpWindow(theURL){
window.open(theURL, 'PopUpWindow',
'toolbar=no,
location=no,
directories=no,
status=no,
scrollbars=yes,
menubar=no,
width=320,
height=220');
}
//-->
</script>
<!--
function PopUpWindow(theURL){
window.open(theURL, 'PopUpWindow',
'toolbar=no,
location=no,
directories=no,
status=no,
scrollbars=yes,
menubar=no,
width=320,
height=220');
}
//-->
</script>
And this
The the BODY
#7
PassionFord Regular
Join Date: Aug 2006
Location: Manchester Drives: E30 Cosworth
Posts: 454
Likes: 0
Received 0 Likes
on
0 Posts
Originally Posted by Graceland
I don't understand
Can you do it so I can copy and paste it please?
Can you do it so I can copy and paste it please?
You'll have <HEAD> tags at the top of the code, and <BODY> tags for the main code...
Slip those sections of code into the afore mentioned tags.
Thread
Thread Starter
Forum
Replies
Last Post
steerfromdarear
Restorations, Rebuilds & Projects.
28
29-01-2016 06:14 PM
Dal_
Computers, Consoles and I.T.
5
19-08-2015 12:42 PM
track.focus'd
Restorations, Rebuilds & Projects.
26
12-08-2015 05:53 PM