General Car Related Discussion. To discuss anything that is related to cars and automotive technology that doesnt naturally fit into another forum catagory.

Any HTML buffs online?

Thread Tools
 
Search this Thread
 
Old 01-09-2006, 10:37 AM
  #1  
Graceland
Team HOTHOT!

Thread Starter
 
Graceland's Avatar
 
Join Date: Aug 2003
Location: Huddersfield Drives: Trains ;)
Posts: 19,065
Received 1 Like on 1 Post
Default 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
Old 01-09-2006, 10:49 AM
  #2  
AndyBrew
Advanced PassionFord User
 
AndyBrew's Avatar
 
Join Date: May 2003
Location: Leicester
Posts: 1,864
Likes: 0
Received 0 Likes on 0 Posts
Default

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>
Old 01-09-2006, 10:50 AM
  #3  
Graceland
Team HOTHOT!

Thread Starter
 
Graceland's Avatar
 
Join Date: Aug 2003
Location: Huddersfield Drives: Trains ;)
Posts: 19,065
Received 1 Like on 1 Post
Default

Cheers Andy - will give that a bash
Old 01-09-2006, 10:52 AM
  #4  
Graceland
Team HOTHOT!

Thread Starter
 
Graceland's Avatar
 
Join Date: Aug 2003
Location: Huddersfield Drives: Trains ;)
Posts: 19,065
Received 1 Like on 1 Post
Default

That code just brings up an error on the status bar Andy, and then nothing when clicking on the link
Old 01-09-2006, 11:54 AM
  #5  
MWF
PassionFord Post Troll
 
MWF's Avatar
 
Join Date: Jul 2003
Location: Wolverhampton
Posts: 3,058
Likes: 0
Received 0 Likes on 0 Posts
Default

Put this

<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>
Within the HEAD TAGS

And this

The the BODY
Old 01-09-2006, 11:56 AM
  #6  
Graceland
Team HOTHOT!

Thread Starter
 
Graceland's Avatar
 
Join Date: Aug 2003
Location: Huddersfield Drives: Trains ;)
Posts: 19,065
Received 1 Like on 1 Post
Default

I don't understand

Can you do it so I can copy and paste it please?
Old 01-09-2006, 12:04 PM
  #7  
Adrenaline Junkie
PassionFord Regular
 
Adrenaline Junkie's Avatar
 
Join Date: Aug 2006
Location: Manchester Drives: E30 Cosworth
Posts: 454
Likes: 0
Received 0 Likes on 0 Posts
Default

Originally Posted by Graceland
I don't understand

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.
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
steerfromdarear
Restorations, Rebuilds & Projects.
28
29-01-2016 06:14 PM
Bailes1992
Restorations, Rebuilds & Projects.
4
03-09-2015 02:17 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
slammedorion
Pictures, video & Photoshop Forum
21
06-08-2015 11:38 AM



Quick Reply: Any HTML buffs online?



All times are GMT. The time now is 06:10 AM.