Webmaster Discussion Forum -  Revenue Sharing Forum  webmaster talk related topic
3000+ Free Tutorials, Read and learn from Picture and text
FREE Tutorials on Flash, Photoshop, PHP, 3DS, MySql and more.
Add your tutorials and get more traffic !

» Free SEO Tools
» Check Page Rank
» Check Page Rank multi datacenter
» Check Fake Page Rank
» Alexa Traffic Rank
» Bulk Page rank Check
» Link Popularity
» Check domain Instantly
» Short url
» MD5 Encrypt
» Meta Tags Extractor
» Surf using Proxy
» Keyword Density Analyzer
» Keyword Analyzer
» Welcome to WMH
Registration at WebmastersHome is completely FREE and takes only a few seconds. By registering you'll gain:
  • Full Posting Privileges.
  • Access to Private Messaging.
Register now
Partner

Text Link Ads
Web Hosting
Flash Tutorials
PHP Scripts
Web Hosting providers
Offshore Software Outsourcing
Web Directory
Software Directory
Your Text Link
Earn More
Simply Add a Post and view ad network advertisement on this post.


Go Back   Webmaster Discussion Forum - Revenue Sharing Forum webmaster talk related topic > Design and Programming Talk > General Web Design


need table help

General Web Design


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-26-2005, 05:22 AM
eyece eyece is offline
Junior Member
 
Join Date: Jul 2005
Posts: 13
eyece is on a distinguished road
iTrader: (0)
Default need table help

i have a nav for my site, when you are on a page of the site that part of the nav is a diffrent color,
f you go to my site http://dhost.info/eyece/
and just move around a bit you can see that it changes, but the way i have it now is every diffrent page has a diffrent table in it, so if i want to add somthing tothe nav i will have to edit heaps of pages,

i need to make it that i put a script on a page and it will change the backround of a cell in my nav when the page loads
that way i can have a diffrent background for the part your on but still be able to add to the nav



i downloaded this one script, it was a java script i put in my head tag, and i put a bit of code in the <table> tag of my table and it would change the background of a cell when my mouse moved over it, i could exclude cells by changing the id of the cell to "ignore"

so i tryed ignoring all but the one i want to change, but that still means i have to have a diffrent table for each page, so if i wanted to add a new link to the nav i would still have to edit ever page

can anyone help me on this?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Revenue Sharing Ads ( Read More ):

  #2 (permalink)  
Old 07-26-2005, 07:06 AM
jitender's Avatar
jitender jitender is offline
Site Admin
 
Join Date: Jun 2004
Posts: 1,200
jitender has a spectacular aura aboutjitender has a spectacular aura aboutjitender has a spectacular aura about
iTrader: (0)
Default

Hi eyece,

Welcome to WMH!

if your file name not change, you can track the file name and change the background color, you are using the apcahe server user below to track the file name

PHP Code:
$var_array explode("/",$PATH_INFO);
$var_array[0] = "download.php"
  
if($var_array[0]=="download.php")
$color=#000000;
if($var_array[0]=="media.php")
$color=#000000;
...
..



May be it will help you

Enjoy!

Regards
Jitender
__________________
Free Webmaster Tools - Free SEO Tools
phpLDHacks - Add your template or Hack and earn money
Text Link Ads - Buy & Sell text link ads
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-26-2005, 08:43 AM
eyece eyece is offline
Junior Member
 
Join Date: Jul 2005
Posts: 13
eyece is on a distinguished road
iTrader: (0)
Default i fixed it now

i found a way to do it,
Code:
<script language="JavaScript1.2"> <!-- function flashit(){ if (!document.all) return if (soldat.style.backgroundColor=="#004444") soldat.style.backgroundColor="#003333" else soldat.style.backgroundColor="#003333" } setInterval("flashit()", 9999) //--> </script>
it was that simple ^.^
thanks anyway
feal free to lock/close this topic
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-26-2005, 11:57 AM
ethic ethic is offline
Moderator
 
Join Date: May 2005
Posts: 139
ethic is on a distinguished road
iTrader: (0)
Default

I think both are the good option for make the navigation good

ethic
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 07-26-2005, 12:19 PM
jbase's Avatar
jbase jbase is offline
Member
 
Join Date: Sep 2004
Posts: 50
jbase is an unknown quantity at this point
iTrader: (0)
Default

Quote:
Originally Posted by eyece
i found a way to do it,
Code:
<script language="JavaScript1.2"> <!-- function flashit(){ if (!document.all) return if (soldat.style.backgroundColor=="#004444") soldat.style.backgroundColor="#003333" else soldat.style.backgroundColor="#003333" } setInterval("flashit()", 9999) //--> </script>
it was that simple ^.^
thanks anyway
feal free to lock/close this topic

hay i didn't understand the above code how it is work

can you help me to understand it, i am alos looking this type of navigattion option

Thanks in advance

Jbase
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 07-26-2005, 08:49 PM
eyece eyece is offline
Junior Member
 
Join Date: Jul 2005
Posts: 13
eyece is on a distinguished road
iTrader: (0)
Default

if you want to input a nav like this, you will have to make each diffrent item in your menu a diffrent table, make sure all the tables have id's and a background color
then put this code under the nav..... or the php include if you want to use that
if its put on top it will load to fast and it will not find the menu, it needs to load after the menu

<script language="JavaScript1.2">
<!--
function flashit(){
if (!document.all)
return
if (name.style.backgroundColor=="unhigh lighted color")
name.style.backgroundColor="high lighted color"
else
name.style.backgroundColor="high lighted color"
}
setInterval("flashit()", 9999)
//-->
</script>

change "name" to the id of the table that you want high lighted, being what part of the nav, as they should all be diffrent tables with diffrent id's
you will need to edit the script for each page so that it high lights the right table/menu item
change "unhigh lighted color" to the color of the table/menu item you want to change
and change "highlighted color" to the new color
this locks onto the table background color.... not the cell background color if there is a cell background color you will not be able to see the table background

hope you understand... if not add my msn... killjoy.j@ihug.co.nz
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 07-27-2005, 12:31 PM
ethic ethic is offline
Moderator
 
Join Date: May 2005
Posts: 139
ethic is on a distinguished road
iTrader: (0)
Default

Cool explaination,

i think now it's very easy to understand the nav now

ethic
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 07-27-2005, 01:56 PM
jitender's Avatar
jitender jitender is offline
Site Admin
 
Join Date: Jun 2004
Posts: 1,200
jitender has a spectacular aura aboutjitender has a spectacular aura aboutjitender has a spectacular aura about
iTrader: (0)
Default

Yes..

It's also a good idea to change the table background color

Regards
Jitender
__________________
Free Webmaster Tools - Free SEO Tools
phpLDHacks - Add your template or Hack and earn money
Text Link Ads - Buy & Sell text link ads
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 07-27-2005, 10:10 PM
gchick gchick is offline
Junior Member
 
Join Date: Jul 2005
Posts: 13
gchick is on a distinguished road
iTrader: (0)
Default

okay im taking notes....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 11:02 PM.


Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0