Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

self page no menu,status,scroll or toolbar

Posted on 2004-07-30
9
Medium Priority
?
946 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:bythefsh
ID: 11693271
is there a way, on leaving the Flash, for me to re-enable the browser attribute?
0
 
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 800 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
Suggested Courses
Course of the Month12 days, 18 hours left to enroll

971 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