Jump to content


  • Posts

  • Joined

  • Last visited

Posts posted by music_lp90

  1. Hey all, I am getting close to having my nav styled the way I want it, but am having trouble figuring out how to make the 2nd level list items stay on the same horizontal line when there is no width specified for the 2nd level "ul". I'll paste the code below, what I want is for the 2nd level list items ("Who we are" "Who we serve" etc.) to be what determines the width of the 2nd level "ul" not the other way around.

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Untitled Document</title><style type="text/css">body { background-color:#cccc99; }/* families tier 1 */#nav ul { padding:0px; margin:0px; }/* Who we are tier 2 */#nav ul ul { position:absolute; left:-999em; }#nav ul li:hover ul { left:0px; /* width:540px; SET WIDTH HERE TO SEE WHAT I WANT IT TO LOOK LIKE, EXCEPT I DON'T WANT A WIDTH SPECIFIED SO IT CAN BE ELASTIC */}/* Overview tier 3 */#nav ul ul ul { position:absolute; }#nav li { padding:0px; margin:0px; position:relative; }#nav ul li { float:left; display:block; }#nav ul ul li { position:relative; display:inline; }#nav ul ul ul li { clear:both; }#nav ul ul li.item-102 { width:100%; display:block; float:none; }/* Families */#nav a { display:block; }#nav ul li a { color:#ffffff; font-family:Tahoma, Verdana, Arial, Helvetica, sans-serif; font-size:24px; text-decoration:none; padding:0px; margin:0px 20px; }#nav ul ul li a {font-size:14px;background-image:url(../images/gray-transparent-bg.png);background-color:#848564; background-repeat:repeat;font-family:Arial, Helvetica, sans-serif;padding:3px 0px 0px 0px;margin:0px 5px;font-weight:bold;width:170px;height:17px;text-align:center;}#nav ul ul li a.feature {background-image:none;background-color:none;color:#000000;font-size:18px;padding:0px;margin:5px 0px 5px 0px;height:56px; width:100%; }#nav ul ul li a.feature .image-title { position:absolute; top:22px; padding-left:5px; }a.feature img { border:0px; }/* overview, etc. */#nav ul ul ul li a { background-image:none; background-color:none; text-align:left; color:#333333; font-weight:normal; padding:0px; margin:0px 5px; min-width:170px; width:100%; }#nav ul ul li a:hover { background-image:url(../images/menu-hover-bg.gif); color:#333333; background-position:left; background-repeat:repeat; }#nav ul ul ul ul li a { font-style:italic; min-width:155px; width:155px; }</style></head><body><div id="nav"><ul class="menu" id="families">    <li class="item-106 deeper parent"><a class="families" href="#1" >families</a>	 <ul>		 <li class="item-102"><a class="feature" href="http://localhost/#2" >Take a guided tour of the program</a></li>		    <li class="item-103 deeper parent"><a class="top" href="http://localhost/who" >Who we are</a>			 <ul>				 <li class="item-107"><a class="sub1" href="http://localhost/" >Overview</a></li>				    <li class="item-110"><a href="#p" >Philosophy</a></li>			    </ul>		    </li>		    <li class="item-104"><a class="top" href="http://localhost/serve" >Who we serve</a></li>		    <li class="item-105 deeper parent"><a class="top" href="http://localhost/expect" >What to expect</a>			    <ul>				    <li class="item-111"><a href="#c" >Cost</a></li>			    </ul>		    </li>	    </ul>    </li>    <li class="item-108 deeper parent"><a class="staff" href="#" >staff</a>	    <ul>		    <li class="item-112"><a href="#b" >Bios</a></li>	    </ul>    </li>    <li class="item-109"><a class="partners" href="#" >partners</a></li></ul></div></body></html>


    • Like 1
  2. As you can see, I repeat use the navigation for every page. I want to avoid using frames or tables (best to avoid those, right?). To see the working website, it's:
    You may want to consider using something like a php include for the navigation. This way you can create one file with your navigation in it and then wherever you want it to apper on a page you write:
    <?php include("navigation.php"); ?>

    You would have to save all of your .htm pages as .php files to do this, though, but then when you have to update the navigation, it's in one place instead of updating every page. You also would have to have php on your server or asp or whatever language you use to do the includes.

  3. Hey Deck,Are you using any programs like Photoshop to draw up the design first before you code it or are you jumping right into coding and trying to design from the code? I find it much easier to create the design in photoshop first and then replicate the design with code.

  4. public function getTitle()	{	  return $this->title;	}		public function getControllerFile()	{	  return $this->controllerFile;	}		public function getHeaderFile()	{	  return $this->headerFile;	}

    Those functions don't seem necessary to me, but maybe I'm missing something. Why have a function to get these values?can't you just do something like this?$obj = new module();echo $obj->title;as opposed to something like this:$obj = new module();$title = $obj->getTitle();echo $title;I'm pretty new to OOP, so maybe there's a good reason for it, but wasn't sure.

  5. Hi all,I have been researching webhosts for a while now and there's so many out there, it has not been easy. I think I've narrowed it down to a few, but am trying to figure out if I will need VPS. The one host that I've talked to about it is strongly recommending that we go with VPS. Our current account is a shared host and they have not mentioned anything to us about using too much bandwidth, CPU, or RAM, so I am trying to figure out if it's really necessary and if it will be beneficial.Here's some of our usage stats:Visits: 22,000-31,000Bandwidth: 80-175 GBAnything else that might be helpful in determining if VPS is appropriate?I think those numbers are fairly high, and the sales person is being honest, but at the same time, our site runs pretty well on our current shared host. I'm being asked to find a new host because of a number of recent issues we've had such as downtime due to our host having routing issues, them upgrading to PHP 5.3 without any notice to us, which was not compatible with our current site, and they had some hardware failures that caused downtime. Switching to VPS would mean another $20 or $30/mo.Also, with VPS, if we went with it, how much RAM would be appropriate or how could I determine this?Thanks for your help!

  6. A few factors involved in SEO that I think are fairly concrete:
    1. Not a SE ranking issue, but pretty, properly rewritten URLs that make sense are far more appealing to the average user. Compare domain.com/index.php?mode=product&id=3 with domain.com/products/psoriasis/psoriasis-cream/3. A user looking for psoriasis treatments will definitely think the latter is what they want

    Search engines do take into account keywords in the URL like your second one. I don't believe it's a huge factor, but helps.
  7. The font color? if so, in your css style sheet you can go input { color:blue; } or give it a class name .usrInput { color: blue; } It would be best to give it a class name unless you want all form inputs to have blue text such as the submit button.

  8. I know how to group them so that when clicking on an image it opens and when clicking on the next button it shows the rest of the image "family".
    I think you should be able to do it the same way, but in each of the images that you don't want seen initially, just put style="display:none;". You could also do it in an external style sheet. .hiddenImg { display:none; }and give each image the class="hiddenImg". That would be the preferred way.
  9. In case anyone else is having this problem, it was because I did not embed the font with the new dynamic text box I made. In order for any tweens or color effects to work on dynamic text boxes you must choose to embed the font in the text box's properties tab.

  10. You could use   for each space. Or instead of using spaces you could use <span> tags around "(1 div)" and style it with some padding on the left.The <span> is probably the better option. Adjust the padding to whatever you need.

    <span style="padding-left: 150px">(1 div)</span>

  11. If you're a like to see it done kind of person. I've really enjoyed lynda.com tutorials. I don't know if I've gone through any of their flash stuff, but I went through their php ones when I was starting and loved it. Here's a link to their Flash tutorials, they've got a lot on the subject. http://www.lynda.com/home/ViewCourses.aspx?lpk0=433 They have free videos to try out, but you have to pay if you want to see them all.

  12. Hi all,A while ago, I created a flash file for reading testimonials from an xml document and fading the testimonials in and out. I would like to use it now, but the text is stretched out. The text gets loaded into a dynamic text box that is inside a movie clip. The movie clip is set on the timeline to fade in and out and just keeps looping. At the beginning of each loop, a new testimonial is loaded in while the alpha is at 0% and not visible. The original dynamic text box was sized to take up the whole stage area (I think it's called a stage in Flash. Maybe canvas or something.) and fades in and out beautifully, except that the text is stretched. So, to fix that, instead of sizing the dynamic text box, I replaced it with a new dynamic text box that stretches to however much text is in it. Now the text shows up nicely. It is not stretched, but for some reason it does not fade in and out like the previous text. I put it inside of the same movie clip, deleted the stretched dynamic text box, and gave the new text box the same instance name as the one it is replacing. All other settings on the text box appear to be the same. I am at a loss for why it will not fade in and out. Any ideas on what else I might need to look into to get the new text box to behave as the old one did?Here's the actionscript if it's any help:On frame 2 (majority of script)

    mc_contain.mc_text.autoSize = 'none';var my_xml:XML = new XML();my_xml.ignoreWhite = true;my_xml.onLoad = function(success){	if (success){		//Load the testimonials into an array to be looped through and displayed in intervals		var xmlTestimonials = my_xml.firstChild.childNodes;		var numTestimonials = xmlTestimonials.length;		//mc_contain.mc_text.text = xmlTestimonials[0].attributes.Content;	}	loop();	function loop(){		mc_contain.mc_text.text = xmlTestimonials[i].attributes.Content;		_global.i++;		if(_global.i >= numTestimonials){			_global.i=0;		}	}}var loadFile = "testimonials.xml";my_xml.load(loadFile);mc_contain.onRelease("");mc_contain.onPress = function() { getURL("http://url", "_self");};

    frame one picks a random place to start:

    function randRange(min:Number, max:Number):Number {    var randomNum:Number = Math.floor(Math.random() * (max - min + 1)) + min;    return randomNum;}_global.i = randRange(0, 29);

    Frame 229 sends back to frame 2 to load next testimonial:


    Thanks for looking!

  13. Something like this?

    <html><head><script type="text/javascript">var month = new Array();var i = 0;month[0] = "April";month[1] = "May";month[2] = "June";month[3] = "July";month[4] = "August";month[5] = "September";function test(){	document.getElementById("month").innerHTML = month[i];	i++;}</script></head><body><a a href="#" onclick="test()">click me<br />    </a><div id="month"></div></body></html>

    You can improve it so it will loop back to the first month when you reach the end, but here's a start. I think it's what you want. The basic things I changed were using innerHTML to write the result into the div that I added in your html. The test function, I just changed to write the result into the div and then increment the count for the next click.

  • Create New...