Solved

self page no menu,status,scroll or toolbar

Posted on 2004-07-30
9
933 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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
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 set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.

760 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

19 Experts available now in Live!

Get 1:1 Help Now