Changing Text with a Hyperlink

liunx

Guest
Can this be done?<br />
<br />
I don't wanna use iframes or frames with this though.<br />
<br />
I want to be able to change the text on the right side of the page by simply clicking a hyperlink on the left side. Kind of like switching an image only it'd be text.<br />
<br />
I also want to make sure that browsers with js disabled can use it as well.<br />
<br />
Any ideas?<br />
<br />
Thanks,<br />
Draike<!--content-->What you're describing is a frame. But if you don't want to use a frame (understandable, frames suck) then you'll just have to use a normal link and go to a new page.<br />
I take it that you don't want to have to reload your navigation bar. Sorry but you can't get round that.<!--content-->Shoot... that sucks.<br />
<br />
I'll figure out something though.<!--content-->Just give in, put your side-bar on every page, then you won't have to worry about it.<!--content-->Alrighty then. My page doesn't take very long too load so it should be alright. Thanks for the advice. :)<br />
<br />
~Draike<!--content-->Happy to help. :)<!--content-->You could do it with CSS as a hover property, but you really don't want to go that route if it's a large amount of text - as in a new page's worth. If it's a single paragraph, it can be done. It's just an issue of positioning. See Eric Meyer: MeyerWeb (<!-- m --><a class="postlink" href="http://meyerweb.com/eric/css/edge/popups/demo.html">http://meyerweb.com/eric/css/edge/popups/demo.html</a><!-- m -->)<!--content-->I think he wants to display almost an entire page onclick of a link. This is possible with CSS but it uses CSS 3 selectors, therefore it's not well supported and I can't remember them. :p<br />
<br />
I'll try and find a link to where I saw it used, but I don't hold much hope.<!--content-->I think you're right, but sometimes you can't tell what somebody wants when they first post. As far as CSS 3, would you use it? I wouldn't, given the poor support for CSS 2.<!--content-->No, not an entire page... just about 10 to 20 lines of text is all.<br />
<br />
It's kind of a descripton type text I want displayed.<!--content-->I could not find the link. If I have time I'll create my own DHTML version, however there's nothing wrong with reloading the page every time.<!--content-->Why do the iframes suck? <br />
<br />
<br />
<br />
<br />
<br />
<br />
<!-- w --><a class="postlink" href="http://www.madddidley.com">www.madddidley.com</a><!-- w --><!--content-->Originally posted by madddidley <br />
Why do the iframes suck? <br />
<br />
<br />
<br />
<br />
<br />
<br />
<!-- w --><a class="postlink" href="http://www.madddidley.com">www.madddidley.com</a><!-- w --> <br />
They are inaccessible to many browsers, not just the ones from back in the day, but even more recent stuff<br />
Iframes will cramp your ability to design<br />
Iframes will kill your back button<br />
They can hurt your search engine rating<br />
They mask the url of your content which can be an annoyance to users who bookmark your site, but the content they wanted bookmarked is not what gets bookmarked.<br />
In a nut shell they are just not very user friendy and they are hard to design with. A much better alternative to get the same content on every page would be a server side include. If you like a scrolling window there is a much better solution,<br />
<br />
<div style="height:100px; width:100px; overflow:auto;"> This content will scroll when it is bigger then the div</div><br />
, the css overflow attribute and a div.<!--content-->I want to be able to change the text on the right side of the page by simply clicking a hyperlink on the left side. <br />
<br />
isn't there a way he can do this with includes?<!--content-->Originally posted by the tree <br />
isn't there a way he can do this with includes? yes, click a link to another page with different content on the other side that includes that same area for the navigation. You can get relly into it server side and only have one page but rotate out the content with the value of the query string of a link that is clicked in the nav menu... thats fun.<!--content-->As for the CSS Popups, You could combo it with Suckerfish (<!-- m --><a class="postlink" href="http://www.alistapart.com/articles/dropdowns/">http://www.alistapart.com/articles/dropdowns/</a><!-- m -->) to be IE friendly...<!--content-->
 
Back
Top