Click here to Skip to main content
16,005,355 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: uploading file Pin
Vasudevan Deepak Kumar18-Jun-05 1:07
Vasudevan Deepak Kumar18-Jun-05 1:07 
GeneralProblem redesigning the CSS way Pin
David O'Neil15-Jun-05 21:53
professionalDavid O'Neil15-Jun-05 21:53 
GeneralRe: Problem redesigning the CSS way Pin
Mattias Olgerfelt20-Jun-05 0:20
Mattias Olgerfelt20-Jun-05 0:20 
GeneralRe: Problem redesigning the CSS way Pin
David O'Neil20-Jun-05 11:50
professionalDavid O'Neil20-Jun-05 11:50 
GeneralRe: Problem redesigning the CSS way Pin
DavidNohejl20-Jun-05 12:50
DavidNohejl20-Jun-05 12:50 
GeneralRe: Problem redesigning the CSS way Pin
Mattias Olgerfelt20-Jun-05 22:41
Mattias Olgerfelt20-Jun-05 22:41 
GeneralRe: Problem redesigning the CSS way Pin
David O'Neil21-Jun-05 4:59
professionalDavid O'Neil21-Jun-05 4:59 
GeneralRe: Problem redesigning the CSS way Pin
Mattias Olgerfelt21-Jun-05 5:42
Mattias Olgerfelt21-Jun-05 5:42 
David O`Neil wrote:
That will only repeat the background IN THE AREAS WHERE TEXT APPEARS. For this reason it won't work if you want the header to automatically expand itself to the right edge of the page. (If your line of text is: "My Text", and it is displayed in 10pt, the background will only be about 1" in width, and will end right after the final 't'.)

Well, that depends on what type of element you have... If you show me the code that is not working I will fix it for you...

About the path to stuff...
Aha, you want the the path to be relative but varying...
Ok.. here is what i sugest...
Add a container DIV to your page holding the menu.
Create a Javascritpt function that crates the meny...
Load the script in the page tag (onLoad="buildMenu();")

Something like this...
<br />
<style><br />
	.menuItem { width: 100px; clear: both; float: left; BACKGROUND-COLOR: #FFF; border: #CCF; border: none; margin: 1px;}<br />
	.menuMouseOver { width: 100px; clear: both; float: left; BACKGROUND-COLOR: #CCC; border: solid 1px #CCF; margin: 0; }<br />
	.menuKeyDown { width: 100px; clear: both; float: left; BACKGROUND-COLOR: #444; border: solid 1px #CCF; margin: 0;}<br />
	#menu { height: 200px;  }<br />
</style>	<br />
<script><br />
	function initNavigation(sElementId, iLevel) {<br />
		if (!document.getElementById) return;<br />
<br />
		var sDir = '';<br />
		var i;<br />
		for (i=0; i<iLevel; i++) {<br />
			sDir += '../';<br />
		}<br />
		var arrNav = new Array();<br />
		arrNav[arrNav.length] = ['Main', sDir + './Page1.htm'];<br />
		arrNav[arrNav.length] = ['Medit', sDir + './medit/Page1.htm'];<br />
		// etc...<br />
<br />
		// Create Menu<br />
		var elm = document.getElementById(sElementId);<br />
		for (i=0; i<arrNav.length; i++) {<br />
			var r;<br />
			r = document.createElement('span');<br />
			r.className='menuItem';<br />
			r.innerHTML = '<a href=\''+arrNav[i][1]+'\'>'+arrNav[i][0]+'</a>';<br />
			r.onmouseover = function () { this.className = 'menuMouseOver'; }<br />
			r.onmouseout = function () { this.className = 'menuItem'; }<br />
			r.onmousedown = function () { this.className = 'menuKeyDown'; }<br />
			r.onclick = function () { this.className = 'menuKeyDown'; document.location.href = this.childNodes[0].href; }<br />
			elm.insertBefore(r,null);<br />
		}<br />
	}<br />
</script><br />
</HEAD><br />
<body onload="initNavigation('menu', 1)" ><br />
<form id=Form1 method=post runat="server"><br />
<div id="menuContainer"></div><br />


Level specifyes how deep the page is.

By the way...
I think that you realy shouldn't use absoulte path's to files and images. Instead use relative paths.

/M
GeneralRe: Problem redesigning the CSS way Pin
David O'Neil21-Jun-05 7:34
professionalDavid O'Neil21-Jun-05 7:34 
GeneralRe: Problem redesigning the CSS way Pin
Mattias Olgerfelt21-Jun-05 22:12
Mattias Olgerfelt21-Jun-05 22:12 
GeneralRe: Problem redesigning the CSS way Pin
Mattias Olgerfelt22-Jun-05 6:39
Mattias Olgerfelt22-Jun-05 6:39 
GeneralRe: Problem redesigning the CSS way Pin
David O'Neil22-Jun-05 7:42
professionalDavid O'Neil22-Jun-05 7:42 
GeneralRe: Problem redesigning the CSS way Pin
Mattias Olgerfelt22-Jun-05 8:40
Mattias Olgerfelt22-Jun-05 8:40 
GeneralRe: Problem redesigning the CSS way Pin
Mattias Olgerfelt22-Jun-05 8:42
Mattias Olgerfelt22-Jun-05 8:42 
GeneralRe: Problem redesigning the CSS way Pin
David O'Neil22-Jun-05 9:28
professionalDavid O'Neil22-Jun-05 9:28 
GeneralRe: Problem redesigning the CSS way Pin
David O'Neil22-Jun-05 15:09
professionalDavid O'Neil22-Jun-05 15:09 
GeneralRe: Problem redesigning the CSS way Pin
David O'Neil22-Jun-05 19:38
professionalDavid O'Neil22-Jun-05 19:38 
GeneralRe: Problem redesigning the CSS way Pin
DavidNohejl20-Jun-05 12:47
DavidNohejl20-Jun-05 12:47 
Generaldownload executables from web page Pin
ask_you14-Jun-05 18:06
ask_you14-Jun-05 18:06 
GeneralRe: download executables from web page Pin
Vasudevan Deepak Kumar14-Jun-05 19:11
Vasudevan Deepak Kumar14-Jun-05 19:11 
GeneralRe: download executables from web page Pin
ask_you14-Jun-05 19:47
ask_you14-Jun-05 19:47 
GeneralRe: download executables from web page Pin
Vasudevan Deepak Kumar15-Jun-05 2:23
Vasudevan Deepak Kumar15-Jun-05 2:23 
GeneralRe: download executables from web page Pin
ask_you15-Jun-05 17:29
ask_you15-Jun-05 17:29 
Generalhtml code to put an executable on a web page Pin
ask_you13-Jun-05 18:35
ask_you13-Jun-05 18:35 
GeneralRe: html code to put an executable on a web page Pin
Christian Graus14-Jun-05 14:32
protectorChristian Graus14-Jun-05 14:32 

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.