Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 28 Jul 2014, 06:32
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
Hacking Firefox with Javascript: popups, min display
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [8 Posts]  
Author Message
ttuuxxx


Joined: 05 May 2007
Posts: 10747
Location: Ontario Canada,Sydney Australia

PostPosted: 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.
ffmini.jpg
 Description   
 Filesize   49.53 KB
 Viewed   1048 Time(s)

ffmini.jpg


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

Back to top
View user's profile Send private message Visit poster's website 
ttuuxxx


Joined: 05 May 2007
Posts: 10747
Location: Ontario Canada,Sydney Australia

PostPosted: 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 Smile
ttuuxxx

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

Back to top
View user's profile Send private message Visit poster's website 
puppymartin


Joined: 29 Mar 2009
Posts: 207
Location: The Netherlands

PostPosted: 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
View user's profile Send private message Visit poster's website 
mikeb


Joined: 23 Nov 2006
Posts: 8032

PostPosted: Mon 06 Jul 2009, 15:41    Post subject:  

Quote:
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
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 8032

PostPosted: 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
View user's profile Send private message 
puppyite


Joined: 23 Jul 2009
Posts: 758
Location: U.S., Midwest, Central Time Zone, GMT-6

PostPosted: Thu 06 Aug 2009, 16:07    Post subject:  

The link should be in the body of the HTML document. My 2 cents. Wink
_________________
Learn more about Puppy Linux: Puppy Linux FAQ
Protect your privacy: Scroogle.org - Ixquick
Back to top
View user's profile Send private message Visit poster's website 
puppyite


Joined: 23 Jul 2009
Posts: 758
Location: U.S., Midwest, Central Time Zone, GMT-6

PostPosted: 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
View user's profile Send private message Visit poster's website 
mikeb


Joined: 23 Nov 2006
Posts: 8032

PostPosted: Thu 06 Aug 2009, 18:38    Post subject:  

could you incorporate the menu in the flash?

mike
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [8 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

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
[ Time: 0.0595s ][ Queries: 13 (0.0046s) ][ GZIP on ]