Solved

self page no menu,status,scroll or toolbar

Posted on 2004-07-30
9
934 Views
Last Modified: 2012-05-05
I know this question has been asked and answered here:
http://www.experts-exchange.com/Web/Web_Languages/Q_20770228.html#9572631
however, because the resulting solution was on a site that is now unavailable i'm asking it again. i.e.  speyfisher, heres a couple of easy points. how do i get a flash to be the browser. i want it sized, no scrollbars, no menu, and no browser buttons. I tried a little javascript :
<script>
self.resizeTo(550,400);
self.("status=no, resizable=no, toolbar=no,menubar=no,scrollbars=no");
</script>

but to no avail.
please help.
thank you.
0
Comment
Question by:bythefsh
  • 5
  • 4
9 Comments
 
LVL 6

Expert Comment

by:hsmtp
ID: 11676941
There is a javascript solution.

Create file "notoolbars.html" and put this code into it:

<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--
      if(document.location.search != "")  {
         var toggle = document.location.search.substr(document.location.search.indexOf('?') + 1)
          if (toggle=="true") {
              window.open("notoolbars.html", "", "toolbar=no, location=no, status=no, menubar=no, scrollbars=no");
                  self.opener = null;
                  self.close();
                  window.resizeTo(800, 600);
          }
      }
//-->
</SCRIPT>

The main thing - you'll need to open it this way: notoolbars.html?true
Without "?true" it will not be resized and toolbars will not be removed.
0
 

Author Comment

by:bythefsh
ID: 11680204
yea, i looked into doing somthing like, but then idon't know how to target="_self" on the subsiquent pages and get rid of the 'no no no null' settings. i thought there might be a way to do it in flash.
0
 
LVL 6

Expert Comment

by:hsmtp
ID: 11683250
I think flash will not be able to do such things.
You can rewrite this JS so it will suit any html file, and you will not need to specify "notoolbars.html" in it.
0
 

Author Comment

by:bythefsh
ID: 11693271
is there a way, on leaving the Flash, for me to re-enable the browser attribute?
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 6

Expert Comment

by:hsmtp
ID: 11693298
What do you mean " re-enable the browser attribute"?
To turn toolbars on again?
0
 

Author Comment

by:bythefsh
ID: 11693313
attributes. i.e. pass to _self  re-enabling toolbars, scrollbars, menubar, location...
0
 

Author Comment

by:bythefsh
ID: 11693329
hmm that wasn't very clear either what i mean is: on exiting the flash presentation (by clicking a button) all the normal browser attributes are restored.
0
 
LVL 6

Accepted Solution

by:
hsmtp earned 200 total points
ID: 11693378
But this will reload your flash. I don't know the other way. There is a JavaScript channel, they may answer your question better.

There are two functions - one hides, second shows.

<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--
     function hideToolbars() {
               window.open("notoolbars.html", "", "toolbar=no,location=no,status=no,menubar=no,scrollbars=no");
               self.opener = null;
               self.close();
               window.resizeTo(800, 600);
     }
     function showToolbars() {
               window.open("notoolbars.html", "", "toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes");
               self.opener = null;
               self.close();
               window.resizeTo(800, 600);
     }
//-->
</SCRIPT>

<a href="javascript:hideToolbars();">Hide</a><br /><a href="javascript:showToolbars();">Show</a>
0
 

Author Comment

by:bythefsh
ID: 11772624
thanks, i now see the direction i need to go in. sorry for the belated response.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

28 Experts available now in Live!

Get 1:1 Help Now