Hacking Firefox with Javascript: popups, min display

How to do things, solutions, recipes, tutorials
Post Reply
Message
Author
User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

Hacking Firefox with Javascript: popups, min display

#1 Post 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.
Attachments
ffmini.jpg
(49.53 KiB) Downloaded 2399 times
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#2 Post 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
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

User avatar
puppymartin
Posts: 207
Joined: Sun 29 Mar 2009, 18:59
Location: The Netherlands
Contact:

#3 Post 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.

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#4 Post 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

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#5 Post by mikeb »

tiffanly go here
http://board.flashkit.com/board/forumdisplay.php?f=103
you should get some answers

mike

puppyite

#6 Post by puppyite »

The link should be in the body of the HTML document. My 2 cents. ;)

puppyite

#7 Post 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.

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#8 Post by mikeb »

could you incorporate the menu in the flash?

mike

Post Reply