Solved

self page no menu,status,scroll or toolbar

Posted on 2004-07-30
9
939 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

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 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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
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.

627 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