The time now is Sat 25 May 2013, 21:38
All times are UTC - 4 |
| Author |
Message |
ttuuxxx

Joined: 05 May 2007 Posts: 10720 Location: Ontario Canada,Sydney Australia
|
Posted: Mon 06 Jul 2009, 02:54 Post subject:
Hacking Firefox with Javascript: popups, min display |
|
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.
 |
| Description |
|
| Filesize |
49.53 KB |
| Viewed |
961 Time(s) |

|
_________________ http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games

|
|
Back to top
|
|
 |
ttuuxxx

Joined: 05 May 2007 Posts: 10720 Location: Ontario Canada,Sydney Australia
|
Posted: Mon 06 Jul 2009, 03:13 Post subject:
|
|
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

|
|
Back to top
|
|
 |
puppymartin

Joined: 29 Mar 2009 Posts: 207 Location: The Netherlands
|
Posted: Mon 06 Jul 2009, 14:41 Post subject:
|
|
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.
|
|
Back to top
|
|
 |
mikeb

Joined: 23 Nov 2006 Posts: 4378
|
Posted: Mon 06 Jul 2009, 15:41 Post subject:
|
|
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
|
|
Back to top
|
|
 |
mikeb

Joined: 23 Nov 2006 Posts: 4378
|
Posted: Thu 06 Aug 2009, 07:34 Post subject:
|
|
tiffanly go here
http://board.flashkit.com/board/forumdisplay.php?f=103
you should get some answers
mike
|
|
Back to top
|
|
 |
puppyite

Joined: 23 Jul 2009 Posts: 758 Location: U.S., Midwest, Central Time Zone, GMT-6
|
Posted: Thu 06 Aug 2009, 16:07 Post subject:
|
|
The link should be in the body of the HTML document. My 2 cents.
_________________ Learn more about Puppy Linux: Puppy Linux FAQ
Protect your privacy: Scroogle.org - Ixquick
|
|
Back to top
|
|
 |
puppyite

Joined: 23 Jul 2009 Posts: 758 Location: U.S., Midwest, Central Time Zone, GMT-6
|
Posted: Thu 06 Aug 2009, 16:23 Post subject:
|
|
| 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.
_________________ Learn more about Puppy Linux: Puppy Linux FAQ
Protect your privacy: Scroogle.org - Ixquick
|
|
Back to top
|
|
 |
mikeb

Joined: 23 Nov 2006 Posts: 4378
|
Posted: Thu 06 Aug 2009, 18:38 Post subject:
|
|
could you incorporate the menu in the flash?
mike
|
|
Back to top
|
|
 |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|