-
-
Help adding a sub menu on navigation
Do not nest tags (div inside div inside div) <ul> <li class="current_page_item"><a href="index.html">Home</a></li> <li> <a href="products.html">Products</a> <ul> <li><a href="products.html">Prod 1</a></li> <li><a href="products.html">Prod 2</a></li> <li><a href="products.html">Prod 3</a></li> </ul> </li> <li><a href="accessories.html">Accessories</a></li> <li><a href="software.html">Software</a></li> <li><a href="support.html">Support</a></li> <li><a href="contact.html">Contact Us</a></li> </ul> Then use CSS to adjust positions, change visuals and create hover effects
- Where can I find cheap web hosting?
-
How to add image that changes every few seconds
The below code is a snippet from what I use on my site to change fade in and out between id's at a specific number of intervals. It doesn't change the src of an image, but is easily done as well. This should give you the basis for what you need though. If you need more I can event comment the code for you explaining what each line does. This of course needs the jquery library. <script type="text/javascript"> jQuery(document).ready(function() { var InfiniteRotator = { init: function() { var initialDelay = 2000; var initialFade = 3000; var intTime = 10000; var fadeTime = 2000; var currentItem = 1; var numberOfItems = 2; setTimeout(function() {$('#id'+currentItem).fadeIn(initialFade);}, initialDelay); var infiniteLoop = setInterval(function(){ $('#promo'+currentItem).fadeOut(fadeTime); if (currentItem == numberOfItems) {currentItem = 1;} else {currentItem++;} setTimeout(function() {$('#id'+currentItem).fadeIn(fadeTime);}, fadeTime); }, intTime); } }; InfiniteRotator.init(); }); </script>
-
-
- looking to move from bluehost
- looking to move from bluehost
-
-
Display random comment on website from list
I see. I would us the one liner.
-
Display random comment on website from list
He's not trying to shuffle the order of the comments, but the display. He wishes to display a random comment on each pageload.
- looking to move from bluehost
-
Why are my PS slice lines showing up in IE
I understand that you are still set to have a meeting with your client about the direction to take, but please do keep in mind that your code is very important. I just took a glance and wanted to point out a few things: 1) No need to nest so many divs 2) utilize css positioning/margins/padding to acquire proper element placement 3) don't use javascript for mouseover styling, instead use css (a:hover/img:hover/a:hover > img) 4) consort with your client to benefits AND negatives to using html5
-
looking to move from bluehost
I VPS does not indicate that you will need to manage the server via command line; just ensure the vps you purchase is managed so if any problems arise you have your provider to handle the issue. If you choose to stay with cPanel what you'll have is WHM (web host manager) which is cPanel's backend. WHM is a control panel that allows you to create website accounts. cPanel/WHM is just one example, but most of the time you'll have a control panel.
-
Display random comment on website from list
no problem.
-
PHP Array Not Working
I just wanted to reiterate the difference between the two.
- Why are my PS slice lines showing up in IE
-
Display random comment on website from list
I would use php and yes you can use an external list. just place an include within the php code: // page.php <?php include("comments.php"); print $comments[rand(0,count($comments))]; ?> // comments.php: <?php $comments = array( 'Example 1', 'Example 2', 'Example 3', 'Example 4', 'Example 5' ); ?>
- Why are my PS slice lines showing up in IE