PDA

View Full Version : HTML file right-aligned on screen and large fonted?


postitlord
11-17-2005, 10:48 PM
Is there a way to make an HTML file appear on the right side a specific width and filling the whole screen's height when opened off the harddrive? That would be very beneficial for me in speech recognition project, to make a list of codes appear, only on the right side, to sit beside an always centered small window being worked in. Also, in some cases I've seen webpages that let fonts get big despite checking the box ignore font sizes. Knowing which code does that would make me quite happy too. But just forcing the right aligment of a window would be enough.

Regards, Ian Nastajus

scoutt
11-18-2005, 05:42 PM
you can have a page (link) use javascript that would open a window the size and location you want. without javascript there is no other way.

what box "ignore font size" are you talking about.

postitlord
11-19-2005, 01:20 AM
think i could call it when the page loads?

ie > tools > internet options > accessabiilty > ignore fonts. and then just use view > text size >largest-smallest. or just hold control while scrolling up and down with scroll wheel. like for example at http://en.wikipedia.org/wiki/Main_Page, the text Main Page remains big. i like this. lots of websites like permantly small. :/

_Aerospace_Eng_
11-19-2005, 01:23 AM
Is this going to be a local application on your system?

scoutt
11-19-2005, 02:23 AM
think i could call it when the page loads?

ie > tools > internet options > accessabiilty > ignore fonts. and then just use view > text size >largest-smallest. or just hold control while scrolling up and down with scroll wheel. like for example at http://en.wikipedia.org/wiki/Main_Page, the text Main Page remains big. i like this. lots of websites like permantly small. :/
yes, jus tput it on the onload in the body tag.

to make the text bigger like that use em instead of px or pc..

postitlord
11-19-2005, 10:33 PM
Eureka I'm almost done. Picutre (http://img.photobucket.com/albums/v485/nastajus/spellbox_with_alphabet.gif). File (http://ian.50webs.com/alphabet.html).

Is it within the scope of JavaScript to send the keys alt plus tab to send the focus out of Internet Explorer to the previous window? I would like to do this the moment the page loads.

That would put this over the top.

postitlord
11-23-2005, 03:59 AM
Anybody want to comment on the posibility of sending the keys alt-tab from a webpage once it's done loading? Help would very much be appreciated here. It's just the one set of keys I'd want it to send, it would make a complicated focus issue very simple.

local app? yep!

RysChwith
11-23-2005, 08:22 AM
Can't be done, as far as I know. You can detect keys that are pressed and do things within the page based on that, but you can't simulate key presses yourself.

Rys

scoutt
11-23-2005, 09:17 AM
why not give the page that you just made from javascript to have focus or stay on top no matter what? no key presses to be made

RogerRamjet
11-24-2005, 07:39 PM
Well now, yet another IE only page, when will you people learn. And what you going to do when IE7 goes live next year?? :rofl:

And what aboout when IE7 comes along next year with tabbed browsing just like FF/Moz/NS ? You'll get a new tab, not a new window, and your window will resize just like my FF did when I opened your File. Plus. of course, most of us are running pop-up stoppers either built-in or add-ons.

Finally, you may be able to access browser menu font settings, but a user style sheet will over-ride that anyway.

Better spend some time getting your head around accessibility issue, they are law now here in the UK. And have a look into the future and the shape of browsers in the 21st century. Even M$ has had to bow to the inevitable and develop IE7 to conform to W3C standards, they claim, and incorporate desirable features like tabbed browsing, pop-up stoppers, etc.

If you want a menu or list on the right of your page then do it properly with CSS and a div that floats right and does not scroll.

postitlord
11-24-2005, 11:51 PM
why not give the page that you just made from javascript to have focus or stay on top no matter what? no key presses to be made I love the stay on top of all windows part, but it's the other window in the picture that needs the focus. It's okay, I see I'm hitting the limit of browsers. Don't worry, it instead will be opened with a special command, and we'll just use the command capabilities to switch focus instead. Was just looking for a neat little independent exit to that now necessary route.

And what you going to do when IE7 goes live next year?? :rofl: Actually the guys making the software Dragon NaturallySpeaking still only support, IE! So I'll work with whatever tools I've got to. Actually this lack of an alphabet appearing next to that spell box, it's a huge omission. This speech software has the hardest time understanding the sounds of single letters, but has great success with long detailed sentences.

But, there's progress being made by the community to get Firefox supported, that is to say browsing the internet by voice. I am trying to make the best solution, I would hate to have an IE only solution. But if the browser is exclusively tabbed, nothing I can do there.

postitlord
11-25-2005, 02:03 AM
I've attached a new picture, I made all the lines condensed so I could almost fit it on one screen. But now I don't need that much width. Is there a way to make the window be only as wide as it's contents? You guys ongoing help is truely appreciated.

postitlord
11-25-2005, 06:07 PM
Another problem is Internet Explorer is remembering the width too small, every new window is appearing squished onto the right side. How do I reset it? I thought the bold line below would do it, but it's not working. Help would be VERY MUCH appreciated!!!! This is a big problem, because I'm recommending this file to others in speech recognition forum, but I don't want to leave everyone's windows too small! :hotbounce

<html>
<!--

function pushAlphabetToSide() {
//Ian Nastajus
//Designed for Dragon NaturallySpeaking to go around SpellBox

spellboxWidth=300; //i measured spellbox width 293 on my system
heightWant=screen.availHeight;
widthWant=(screen.availWidth - spellboxWidth) / 2;
window.moveTo(screen.width - widthWant, 0); //right side
//window.moveTo(0,0); //left side
window.resizeTo(widthWant, heightWant);
window.onunload = function(){window.resizeTo(screen.availWidth, screen.availHeight)};
}

//-->
</script>

<body onLoad="pushAlphabetToSide()">
stuff
</body>
</html>

It comes from this new version (http://ian.50webs.com/alphabet_version2.txt). When saved on a harddrive, it works properly. When opened directly from this free site, it operates incorrectly.

Jon Hanlon
12-04-2005, 04:25 PM
window.onunload = function(){window.moveTo(0,0); window.resizeTo(screen.availWidth, screen.availHeight)};