HTML - A Little Link Issue
Ok for my site I decided to have the links all in one file and to just do an "include" on each page to call it. Only it just hit me now there might be a problem with doing that. I use a css generated menu and in my "links" file I use "class="current" which will turn the tab of the current page red. So my question is this. How can I still use "class="current"" for each page without any problems and STILL have only one file for my links? Here is my links code right now.
PHP Code: <div class="hovermenu"> <ul> <li><a href="index.php" class="current">Home</a></li> <li><a href="clubs.php" >Clubs</a></li> <li><a href="resturants.php" >Resturants</a></li> <li><a href="contact.php">Bars</a></li> <li><a href="contact.php">Coffee Shops</a></li> <li><a href="video.php" >Video</a></li> <li><a href="stuff.php">Music</a></li> <li><a href="up_coming.php">Up Coming Events</a></li> <li><a href="example.php">Attractions</a></li> <li><a href="contact.php">Contact Us</a></li> </ul> <p class="iepara"></p> </div> and a sample of my page code PHP Code: <div class="redline"> </div> <?php include "links_nav.php" ?> <div class="redline"> </div> <div id="left"> <p><img src="your_ad_here.jpg" height="125" width="125" align="middle" alt=""></p> <p> This is sidebar content and will all go over here. This can be moved and tweeked if need be. This box that you are reading this in will also automaticly adjust its size to the ammount of text that is entered. </p> <div id="sidesred"></div> <p> This is sidebar content and will all go over here. This can be moved and tweeked if need be. This box that you are reading this in will also automaticly adjust its size to the ammount of text that is entered. </p> <div id="sidesred"></div> <p> This is sidebar content and will all go over here. This can be moved and tweeked if need be. This box that you are reading this in will also automaticly adjust its size to the ammount of text that is entered. </p> <div id="sidesred"></div> </div> <div id="content"> <p><span class="style4">Who are we?</span></p> <p> Twincitieshotspot.com is a site that shows people some of the hottest places in the Twincities and surrounding suburbs. Most of these "hot spots" are generaly smaller companies, weather they be bars, restaurants or clubs. We want you to have a great time at the places you go to. So let us do the dirty work to find the "hot spots" for you. But if you have found a potential "hot spot" lets us know, you can even leave comments about places posted on our site. </p> <div id="middlered"></div> <span class="style4">What's a "hot spot"?</span> <p> Well thats a great question and you shall receive a great answer. Like most of you we like to think of a hot spot as a place that everyone wants to go to. Now just because everyone goes to a place doesnt always make it a "hot spot" to everyone. So to weed through this process we have come up with the first ever "Hot Spot" rating system. On our pages not only can you leave a comment about a particular place but you can also rate it with our "10 spot" rating system. Once places start getting rated they will develop an over all average rating for all to see. Then you can decide if it is hot enough for you. </p> <div id="middlered"></div> <span class="style4">And here</span> <p> And a local style to highlight the first word : All of our world dominating and ever so addicting Hotspot content will go here or maybe here... It also seems that no matter how much I type, all of the text is kept nice and tight into a predefind box to keep it all organized. Ill have to check it out. </p> <div id="middlered"></div> </div> <div id="right"> <p><img src="your_ad_here.jpg" height="125" width="125" align="middle" alt=""></p> <p><img src="your_ad_here.jpg" height="125" width="125" align="middle" alt=""></p> <p> This is sidebar content and will all go over here. This can be moved and tweeked if need be. This box that you are reading this in will also automaticly adjust its size to the ammount of text that is entered. </p> <div id="sidesred"></div> <p> This is sidebar content and will all go over here. This can be moved and tweeked if need be. This box that you are reading this in will also automaticly adjust its size to the ammount of text that is entered. </p> <div id="sidesred"></div> </div> <?php include "links_footer.php" ?> </div> links_nav.php is the file containing the links for me menu. Any ideas? Thanks for all the help. Similar Tutorialshttp://www.americancreek.com/index.p...d=37&Itemid=61 Picture gallery link does not work. It is an .swf file. When i test it out in flash, it works fine. But when I insert the .swf into the website, the link does not work. Hi all, I have a page that has a lot of links that bring up a PDF form file in its own window. No problem opening the link and getting the PDF but when a user selects "save link as" it only gives them the option of HTML not PDF. Even more interesting the HTML option just refreshes the page. Any ideas? Thanks. Sticks101 hey, im having an issue with Opera... in FF and IE things work fine... but i wanted to see what my customers will be seeing so i downloaded opera to get another point of view... now <body link = "lawngreen"> isnt working vlink works in opera... and oddly opera accepts the vlink = green... and fire fox does not... I am wondering i dono much about CSS but have been hearing CSS is your friend, Use CSS, edit your CSS, CSS CSS CSS.... whats the deal with the CSS you make a file with specifics ? then reference to it and instead of it using IE / FF / Opera as its reference it looks @ your code now and universally sets figures in all browers? Or am i way way off here... lol sorry im uber noober here on this 1... can any1 suggest a good CSS info site if they know one, and if any1 knows a fix for the coloring issues between browsers please let me know, thank you all very much... Hi, I am in the process of building a website for a client. This is my first ever site so I knew I would have a few issues. I have fixed all but one at present. Here is a link to my site which I have put live on a test server. http://leaf.greenxtian.com/grangefarm/index.html The naviagation bar and Lightbox2 images are moving when rolled over. This only happens in Internet Explorer 8. It is fine in FireFox and other browsers. It is only on the Services/Facilities Pages so I think it may be an issue with the CSS for Lightbox2? Maybe how I have set it up or just a bug in the coding? Does anyone know why this is happening? If so, do you know of a fix? Any help would be greatly appreciated as I have spent hours trying to work this out. I have several links on my site, all in the form of <a href="http://www.mywebsite.com">mywebsite</a> How do I need to change it such that a new instance of the browser is used in which the linked site is displayed. Ive been working on a website in my free time, and I have been wondering if it's possible to hover over a link, and change the text color of another link. A picture of one of my web pages is shown in the link below. http://i223.photobucket.com/albums/d...screenshot.jpg I want to be able to hover over something from the side navigation bars and have various links in the bottom naviational bar change color. So like hovering over Blood Elf, would make Death Knight, Mage, Paladin, Warlock, Priest, Rogue, Hunter turn red Does anyone know how to do this? or even know if it is possible? Hi, I'm newly registered and seeking some assistance. I'm working on a website for a client and come across an issue. The following is my iFrame code: Code: <div id="iframez"> <iframe src="main.html" width="100%" height="400px" name="framez"></iframe> </div> I have a link that is at the bottom of the page that is supposed to load in the iFrame when clicked upon. The code is as follows: Code: <a href="somelink.html" target="framez">some link</a> What I want is when the link is clicked that it loads in the iframe (this works as intended) AND I want the page to scroll up to the iframe. I tried doing this without success: Code: <a href="somelink.html#iframez" target="framez">some link</a> This is interpreted as #iframez in somelink.html, and not the page its on. Is there any way around this? Thanks for your patience. Hi im not sure if this can be done i have created some buttons to use as links and once i put the a href code in a box appears around the button can i remove this and how plz you can see example of what i mean on my website i have made Home and Contact clickable but i want to remove the box thats around the button if possible http://dreamteam0708.co.uk/ for info: im coding my own html in notepad, not using any programs or anything and my hosting doesnt support php etc I need a way to open two pictures at once by clicking on a single link. I have pictures of the fronts and backs of coins. I want to be able to click on a link and have the front and back pictures open side by side. I know it's used to link to a css document, but, I've also seen it used in other situations. So what other uses are there for the <link> tag? Is it kind of like an include? I've tried looking this up on Google, and every example use I can see for it is for linking the css document. And the descriptions are basically the same as the examples. im fairly new to html, i need a code to make a link so when it is clicked on it opens the page in a new window. i completely forgot how to do this. I am a noobie on building sites. I have been messing with my site for a few months now. I am trying a new image rotator that has clickable buttons in it however I can not get them to link to something. Please tell me how I can link this tag so it goes to the desired location: <button type="button"><span><span><span>Get Packing!</span></span></span></button> Hi, I have the following line in a php document and for whatever reason the "ENTER" text shows up in Firefox as a hyperlinked word but in IE it just shows up as normal text (however clicking on the text in IE still launches the swf). Can anyone offer some insight into how to remedy this problem? <div id = "enterblock"><font size = 6>                     <a href onclick="openFullScreen('EbbFlowTest.swf','dugFull','status=yes,scrollbars=yes');return false; self.close()" >ENTER</a></font><text>    (Flash player required)</div> Thanks, Mike Ok here is what i am looking for. I am looking to make a small picture and make it a clickable link to a url that will work in a forum post. Thanks in advance, Chris. I have a link bar that I would like to show up at the bottom of all the pages on my website. Could I put some sort of tag at the bottom to load the bar? I don't want to spend the time to add it to all my pages. Example: page stuff page stuff page stuff page stuff page stuff page stuff page stuff page stuff page stuff page stuff page stuff page stuff page stuff page stuff page stuff page stuff page stuff page stuff page stuff page stuff page stuff page stuff page stuff page stuff page stuff page stuff page stuff page stuff page stuff page stuff page stuff page stuff Home videos software A menu bar like this on every page I want to set up an ftp link. <a href="ftp://....."> How do I set this up incorporating the login name and password in the link? Thanks! I hope somebody here can help me. I have altered a PSD web template and saved it using ImageReady as html and images. When I open the html page in Dreamweaver, I can see the page as I have done it. When i clik on the first image and insert a link for it, the page shifts out of place. Anybody any idea why? Thanks in advance Colin Hey folks. So i'm pretty new to all this...so bare with me. but i would like to make a link where when the viewer clicks on it, it will redirect them further down the page. For Example: you click on "pictures" and then it will auto scroll you further down the page to where the pictures are. What is the html to do this? Thanks Alot. Cody Okay, i have a menu down the left side of my webpage with numerous buttons. i want it so when i click a button, the image in the centre of the page will change to the image assigned to that button without opening a new page. any ideas? Hello, I am creating a clickable link with an image for my site in order to display on other sites. I have managed to do it but I was wondering if somebody knows how to make the link pop up in a new window rather than open on the existing page. <a href="http://www.raphaelabramov.com/" title="Raphael Abramov Photography"><img src="http://farm6.static.flickr.com/5133/5462888784_7e944fca61.jpg" width="292" height="50" alt="Untitled-2" /></a> |