Jump to content

Recommended Posts

Posted (edited)

When clicking the "User Manual" button normaly you get a window with al the toolbars etc... I didn't like it so I decided to do something about it:

add this to the top of your wpi.htm

function openManual(MyURL)
{
window.open(MyURL,"mypopup"," status=no,toolbar=no,location=no,menubar=no,scrollbars=yes,resizable=yes");
}

(between the script-tags)

and change the following section in wpi.htm

	 <!-- The user manual. -->
         <div id="ManButton"><a href="./UserManual/manual.html" target="_blank" onMouseDown"document.ManualButton.src='./themes/Glossy/manual.gif';" onMouseOver="document.ManualButton.src='./themes/Glossy/manualOver.gif'; stm(getText(ttmanual),Style[0]);" onMouseOut="document.ManualButton.src='./themes/Glossy/manual.gif'; htm()">
         </b></font> <img src="./themes/Glossy/manual.gif" align="absbottom" class="mainbtn" border="0" name="ManualButton">
   <font class="side"><b><script>document.write(getText(lblmanual));</script>
 </div>
</td>

to

	 <!-- The user manual. -->
         <div id="ManButton"><a href="./UserManual/manual.html" target="mypopup" onMouseDown"document.ManualButton.src='./themes/Glossy/manual.gif';" onMouseOver="document.ManualButton.src='./themes/Glossy/manualOver.gif'; stm(getText(ttmanual),Style[0]);" onMouseOut="document.ManualButton.src='./themes/Glossy/manual.gif'; htm()" onClick="openManual('./UserManual/manual.html')">
         </b></font> <img src="./themes/Glossy/manual.gif" align="absbottom" class="mainbtn" border="0" name="ManualButton">
   <font class="side"><b><script>document.write(getText(lblmanual));</script>
 </div>
</td>

Now we have a clean window without those ugly bars ;)

Edited by Ghost82

Posted

@Ghost82

im trying to test your script out and im having some trouble a good few errors keep attacking me .

could you attach your wpi.htm file so i can see this further

Posted (edited)

ok ive tested it and i see a few problems with your method ghost

your using a chromeless windows approach and the problem with that is that it automatically opens in full screen, and you cant preset the size limit

second you have no control functions to close the screen other then a alt+F4 method.

but thank you for showing me your wpi.htm file ill see if i can alter its size limit, position and control features

Edited by Lost Soul
Posted

Ow, sh*t... I forgot, I had made a few modifications to the file because I wanted to really integrate the manual but I haven't figured out how to position the manual inside the actual WPI screen... hope you can help with that.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...