Solved

self page no menu,status,scroll or toolbar

Posted on 2004-07-30
9
937 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
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 

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

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!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Link puzzle piece images together and change color on hover 2 461
Flash Slides/Presnetation 4 84
Can't play streaming video on event.on24.com 7 493
File conversion question 5 156
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 how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

759 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