Page 1 of 1

Hacking Firefox with Javascript: popups, min display

Posted: Mon 06 Jul 2009, 06:54
by ttuuxxx
Hi I was bored so I started playing around with javascript, And figured that small screen users like eeepc might like something like this.
Basically you open geany and copy this code

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<a href="javascript:window.open('http://www.google.com','google','width=600,height=425,scrollbars=yes')">click here</a>
<html>
<head>
<title></title>
</head>
<body></body>
</html>

then save it as anything like browser.html
then rightclick on browser html and select open with defaultbrowser, firefox will open and it will say 'click here'
and then you'll have a really small limited screen to go surfing on.
I made the popup window default in size to 600X425 so it should fit just about any screen.

If you don't want scrollbars just remove it from the code, plus if you want to add extra features like

,menubar=yes
that will give you file, edit, view, history, bookmarts, tools, help

,toolbar=yes
That will give you the navigation, toolbars but if you right click on a page, you have some basic nav functions, so you probably could do without them.

I figured that something like this could be handy for someone,lol Well Firefox does work better than dillo etc. Anyways have fun with it, always use a common in front of the code like how I displayed the examples, and no comma on the very end.

ttuuxxx

Ps feel free to add your Firefox Gui hacks here also.

Posted: Mon 06 Jul 2009, 07:13
by ttuuxxx
Also if you want some more info on javascript this page is good
http://www.yourhtmlsource.com/javascript/ the popup window section is really good :)
ttuuxxx

Posted: Mon 06 Jul 2009, 18:41
by puppymartin
Can you change the address in the location field?
In Firefox 3.5 it is not possible.

With CTRL L you can go to a new location.

Posted: Mon 06 Jul 2009, 19:41
by mikeb
Hi I was bored
compile an up to date version of alsa..that'll keep you out of mischief and you will be loved by many in the non biblical sense (unless you want that)

mike

Posted: Thu 06 Aug 2009, 11:34
by mikeb
tiffanly go here
http://board.flashkit.com/board/forumdisplay.php?f=103
you should get some answers

mike

Posted: Thu 06 Aug 2009, 20:07
by puppyite
The link should be in the body of the HTML document. My 2 cents. ;)

Posted: Thu 06 Aug 2009, 20:23
by puppyite
tiffanly wrote:How do a play a flash movie BEHIND some javascript menus I have running on a page? I currently have a javascript dropdown menu on top of my webpage (when the user mouses-over the menu, the menu expands downward). I have a flash file directly below the menu. Whenever the user mouses-over the menu, the submenu items disappear BEHIND the flash movie... making them unviewable (and unclickable). How do I make it so the flashmovie shows up BEHIND the menu?
IIRC you can’t. Unfortunately the exact reason why it won’t work escapes me at the moment.

You might try assigning z indexes to the menu and the flash movie such that the movie is behind the menu due to a lower order of precedence in the stack. If you have these two items in different div’s then assign the z index to those elements. I don’t recall ever trying this solution but it’s worth a shot. If you do succeed I’d be curious to know how you did it.

Posted: Thu 06 Aug 2009, 22:38
by mikeb
could you incorporate the menu in the flash?

mike