Click here to Skip to main content
15,905,028 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: COM object in javascript Pin
DavidNohejl27-Jan-05 14:22
DavidNohejl27-Jan-05 14:22 
GeneralWind Gauge, Thermometer Objects Pin
jerry1211a27-Jan-05 2:53
jerry1211a27-Jan-05 2:53 
GeneralRe: Wind Gauge, Thermometer Objects Pin
tojamismis27-Jan-05 7:21
tojamismis27-Jan-05 7:21 
QuestionHow a java applet read data continously from server? Pin
kokain26-Jan-05 21:56
kokain26-Jan-05 21:56 
GeneralWeb development Pin
Yulianto.25-Jan-05 16:55
Yulianto.25-Jan-05 16:55 
GeneralRe: Web development Pin
DavidNohejl26-Jan-05 5:44
DavidNohejl26-Jan-05 5:44 
GeneralRe: Web development Pin
Yulianto.26-Jan-05 15:03
Yulianto.26-Jan-05 15:03 
GeneralRe: Web development Pin
DavidNohejl26-Jan-05 15:24
DavidNohejl26-Jan-05 15:24 
GeneralRe: Web development Pin
Yulianto.26-Jan-05 17:19
Yulianto.26-Jan-05 17:19 
GeneralRe: Web development Pin
DavidNohejl26-Jan-05 22:06
DavidNohejl26-Jan-05 22:06 
GeneralRe: Web development Pin
V.27-Jan-05 1:16
professionalV.27-Jan-05 1:16 
GeneralRe: Web development Pin
mtone27-Jan-05 8:28
mtone27-Jan-05 8:28 
GeneralRe: Web development Pin
Yulianto.27-Jan-05 14:11
Yulianto.27-Jan-05 14:11 
GeneralRe: Web development Pin
mtone28-Jan-05 2:47
mtone28-Jan-05 2:47 
GeneralRe: Web development Pin
Yulianto.28-Jan-05 16:06
Yulianto.28-Jan-05 16:06 
GeneralSimple question Pin
Yulianto.25-Jan-05 16:17
Yulianto.25-Jan-05 16:17 
GeneralRe: Simple question Pin
Yulianto.25-Jan-05 16:42
Yulianto.25-Jan-05 16:42 
GeneralRe: Simple question Pin
markkuk25-Jan-05 21:12
markkuk25-Jan-05 21:12 
GeneralDHTML div dilemma Pin
Nino_125-Jan-05 7:11
Nino_125-Jan-05 7:11 
Hi All,

I'm attempting to center three div layers within a tabbed view, I'm using a function that was written by a co-worker which is great but I cannot find out were to callout the "resize" within the code.

Here is what I have for the function:

function centerDivs(){<br />
	widthOfDiv = '720'; //put the div width into variable<br />
	centeringTheDiv = (screen.width) ? (screen.width-widthOfDiv)/2 : 0; //find out where the middle is widthwise<br />
	//do this for each div layer	<br />
	document.all["LayerOne"].left = centeringTheDiv;<br />
        document.all["LayerTwo"].left = centeringTheDiv;<br />
        document.all["LayerThree"].left = centeringTheDiv;<br />
}<br />
<br />
<body onload="centerDivs()">


Now! where do I plant the resize method within the code. I've tried to center these layers by surrounding with a table and centering through the "center" tag but the layers always snap back to the left.

Any suggestions would be great.

Thanks In Advance.

Nino
GeneralHere's the Fix !! Pin
Nino_126-Jan-05 6:10
Nino_126-Jan-05 6:10 
Generalflash files Pin
sianatia25-Jan-05 0:01
sianatia25-Jan-05 0:01 
GeneralRe: flash files Pin
JKroschel25-Jan-05 10:52
JKroschel25-Jan-05 10:52 
GeneralConfiguring IIS at application deployment Pin
J4amieC23-Jan-05 22:29
J4amieC23-Jan-05 22:29 
GeneralRe: Configuring IIS at application deployment Pin
J4amieC24-Jan-05 0:25
J4amieC24-Jan-05 0:25 
Questionhow to import address book from hotmail account into my webpage Pin
lavanm23-Jan-05 18:26
lavanm23-Jan-05 18:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.