English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

i want to be able to enter a java script code in an html page so that when i open this page it will automaticly resize to what i want and no menu bar etc.. just a photo i will put in the page and want it to be the ecxact size of the photo ... but i don't want the code that generats a new html page when i click a link or open new window and loads the pic in it... i want the page to be already made with the code in it and resize it's self .. why? cause i will link to this page from a flash file and i don't know how to convert the java script code to work from flash and i tried the method on the flash web site but it's not working .. not even the sample file that they provided is working ...... so any one knows the answer ...
..PS : ... if any one knows the code to be put in flash to generat this page and it works then this is just as good

2006-08-31 21:40:37 · 3 answers · asked by kyle737 2 in Computers & Internet Programming & Design

thanks "Nishan Saliya" i tried your code and it works and resizes the page but i now have 2 other issues i hope you can help me in .. 1- is there a way to resize the page without the IE asking the user if he wants to allow the blocked content ?
2- how can i compine your code with the one proviede by "AnalProgrammer" - thanks to him too - so i can control the page's apperance , tool bar , scroll bar , etc .....


thanks in advance guys

2006-09-01 19:30:15 · update #1

3 answers

I tried your question. But it’s going to take some time for me to design it completely. Anyway, I can give you some links; hoping that you can fix it by yourself. And I pasted some codes I tried too. Sorry for the partial answer, but can’t spend much time in this.

Links - http://www.w3schools.com/htmldom/dom_obj_window.asp

Codes (Partial)









Regards

2006-08-31 22:01:27 · answer #1 · answered by Nishan Saliya 4 · 1 0

The javascript command you are looking for is

var pictureWindow = window.open("webpage.htm", "windowName", "toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width=640, height=480");

Change the window size to suit. Modify the parameters for the features that you want to include.

2006-08-31 22:43:17 · answer #2 · answered by AnalProgrammer 7 · 0 0

right here is how i might do it, it tests the person enter if that's a digit, if now no longer then it is going to eliminate that character: carry out isNumeric(identity) var numPatt = /D/; var userInput = report.GetElementById(identity).fee; if(userInput.tournament(numPatt)) correctUserInput = userInput.Substr(0, userInput.length-a million); checklist.GetElementById(identity).well worth = correctUserInput; // end of isNumeric wish this facilitates :)

2016-11-06 05:04:16 · answer #3 · answered by ? 4 · 0 0

fedest.com, questions and answers