Re: Split Screen

Wojtek <[email protected]> Fri, 26 Feb 2010 08:25:29 -0800
Newsgroups gmane.comp.mozilla.multizilla
Organization The Mozdev Foundation - news server
Message-ID <[email protected]>
Peter Potamus the Purple Hippo wrote :
> Wojtek wrote:
>> I know that development is kind of off the burner right now, but a really 
>> neat feature would be the ability to place two tabs side by side.
>> 
>> So you have multiple tabs open, and you take one and drag it down and to 
>> one side (or bottom) and the screen splits and you have two tabs open and 
>> visible at the same time.
>> 
>> And I am another one still at the 1.x level...
>> 
>
> I know this isn't what you wanted, but its the closes thing there is for a 
> split screen for SeaMonkey. Create a bookmarklet out of the javascript below. 
>  When you're on some site, click the bookmarklet.  You'll get a popup to 
> enter a site, then another popup to enter another site or use the same one.  
> Then it'll split the current tab into two, and you can view the same site in 
> the split screens or view two different sites.
>
> javascript:A14nH=location.href;L3f7=prompt('Choose%20File%201',A14nH); 
> R1Gh7=prompt('Choose%20File%202',L3f7); 
> if(L3f7&&R1Gh7){Fr4Q='<frameset%20cols=\'*,*\'>\n<frame%20src=\''+L3f7+'\'/>';Fr4Q+='<frame%20src=\''+R1Gh7+'\'/>\n';Fr4Q+='</frameset>'; 
> with(document){write(Fr4Q); void(close())}}else{void(null)}

Ok, this works. Thanks. I just need to copy/paste the urls before hand.

To anyone else reading this. You MUST prepend the media type, so 
www.google.com fails while http://www.google.com works

> Otherwise, there is the split browser addon for Firefox: 
> https://addons.mozilla.org/en-US/firefox/addon/4287 . Perhaps you can find a 
> way to port it over to SM.  If you do, then besure to let others know about 
> it.

Yes, this is what I was suggesting.

But sorry, my skills lie in another direction. While I can sort of read 
your script, I would NEVER be able to create it.

So many languages, so little time...

-- 
Wojtek :-)