×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Help with HTA Sysmenu

Help with HTA Sysmenu

Help with HTA Sysmenu

(OP)
Hi, i'm note be able to hide Sysmenu on hta when using Video. Here is my code :

<html>
<head>
<title>Video_1</title>

<HTA:APPLICATIONAPPLICATIONNAME = "Playing_Video"
ID = "Playing_Video"
BORDERSTYLE = "Normal"
CAPTION = "No"
CONTEXTMENU = "No"
INNERBORDER = "No"
MAXIMIZEBUTTON = "No"
MINIMIZEBUTTON = "No"
NAVIGABLE = "No"
SCROLL = "No"
SCROLLFLAT = "No"
SELECTION = "No"
SHOWINTASKBAR = "No"
SINGLEINSTANCE = "Yes"
SYSMENU = "No"
/>
<meta http-equiv="x-ua-compatible" content="ie=edge" />

<script>
window.onload = function sizeIt(){
var sw = (screen.width-800)/2;
var sh = (screen.height-600)/2;
window.moveTo(sw,sh);window.resizeTo(800,600)}
</script>

</head>

<script language="VBScript">

Sub Window_OnLoad
'This method will be called when the application loads
'Add your code here
End Sub

</script>

<body bgcolor="white">

<video id="vid_1" width="750" height="500"
autoplay="true" source src="C:\temp\test.mp4" type="video/mp4"></video>

<script type='text/javascript'>
document.getElementById('vid_1').addEventListener('ended',myHandler,false);
function myHandler(e) {
window.close()
}
</script>
</body>
</html>

on all other HTA that i create, i can hide Sysmenu, Maximize or Minimize Button but not on this.

Any help will be appreciate.
Thanks

RE: Help with HTA Sysmenu

It is missing a space between APPLICATION and APPLICATIONNAME. Change

CODE

<HTA:APPLICATIONAPPLICATIONNAME = "Playing_Video" 

to

CODE

<HTA:APPLICATION APPLICATIONNAME = "Playing_Video" 

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close