Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AUTORUN and html and IE 1

Status
Not open for further replies.

snix1

Programmer
Dec 12, 2000
107
US
Hi! I have a CD with an autorun.inf file on it and it starts up fine. I have a question, though. Is there anyway to get rid of the Internet Explorer "header" information, i.e. the back, forward, stop, etc. buttons in the IE window, so only my application is seen?

Hope this question makes sense.

Thanks!
 
Put a new initial start page for your autorun that has the following script:
<script>
window.open('realstartpage.html','newWin','fullscreen');
self.opener = self;
window.close();
</script>
 
Thanks much drawfthrower!! This worked great...
 
Can you tell me how I (a novice programmer) would integrate that script into the autorun.inf? Or is it an additional file made for the cd?

My autorun is:

[autorun]
shellexecute=&quot;index.html&quot;

which seems to work fine but I'd like to remove to &quot;tools&quot; in the browser like snix1 mentioned.

Thank you!
-memoirman
 
Yes, I made my autorun.inf point to another .htm file called start.htm. It looks like this:

Code:
<!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;>

<html>
<head>
	<title>my Title</title>
	<LINK 
href=&quot;extras/styles.css&quot; type=text/css rel=stylesheet>
</head>

<body>
<script language=&quot;javascript&quot;>
 window.open(&quot;first_page.htm&quot;,&quot;newWin&quot;,&quot;fullscreen&quot;);
self.opener = self;
self.moveTo((&quot;1&quot;),(&quot;1&quot;));
		self.resizeTo((&quot;400&quot;),(&quot;400&quot;)) ;
 	void(outerWidth=400);  
 	 void(outerHeight=400);

</script>

<body bgcolor=&quot;#FFFFFF&quot; text=&quot;#003366&quot; link=&quot;#FFFFFF&quot; vlink=&quot;#FFCC33&quot; alink=&quot;#336699&quot; leftmargin=&quot;10&quot; topmargin=&quot;4&quot; marginwidth=&quot;10&quot; marginheight=&quot;4&quot;>
<BODY>
<DIV align=center><IMG src=&quot;images/someimage.gif&quot;> <BR><BR><SPAN class=selfassesstitle>Welcome to 
My on-line course</SPAN> </DIV>
</BODY></HTML>

For you, the first_page.htm in the javascript would be index.htm.

As you notice, I resize the window I open. You may or may or may not want to do this. Also notice the &quot;newWin&quot; and &quot;fullscreen&quot; parameters to window.open. These take away the stuff you don't want. This start.htm opens a new page and initiates the script you want to run.

Good luck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top