Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 02-07-2007, 03:35 AM Help me!
kids's Avatar
Ultra Talker

Posts: 301
Trades: 0
I want to design a new website. I place left navi-panel and have some links like this:
Link 1 --> page1.html
Link 2 --> page2.html
...
But I want to hide page by filter like this:
<a href=?page=namepage1>link 1</a>
<a href=?page=namepage2>link 2</a>

And when users click link 1, browser will be redirect to page1.html...

Please help me how to do! Thanks
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Last edited by kids; 02-07-2007 at 03:40 AM..
kids is offline
Reply With Quote
View Public Profile Visit kids's homepage!
 
 
Register now for full access!
Old 02-07-2007, 04:06 AM Re: Help me!
ForrestCroce's Avatar
Half Man, Half Amazing

Posts: 3,023
Name: Forrest Croce
Location: Seattle, WA
Trades: 0
You need javascript to do that, since hrefs need to point to a specific url.

<a href="javascript:link1()">link1</a>
<script>
function link1() {
document.navigate('somePage.url');
}
</script>
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
ForrestCroce is offline
Reply With Quote
View Public Profile Visit ForrestCroce's homepage!
 
Old 02-07-2007, 04:14 AM Re: Help me!
kids's Avatar
Ultra Talker

Posts: 301
Trades: 0
Thanks! So you can help me more. I want url like this:

http://mydomain.com/?page=pagex

And browser will be redirect to a page .html (about.html, contact.html, etc...)

<a href=?page=about>About Us</a> --> open page about.html
...
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
kids is offline
Reply With Quote
View Public Profile Visit kids's homepage!
 
Old 02-07-2007, 11:53 AM Re: Help me!
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
That will require something like PHP or ASP.

Why are you trying to HIDE your pages anyway ??
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 02-07-2007, 01:31 PM Re: Help me!
Skilled Talker

Posts: 50
Trades: 0
This may be a bit unrelated, but does anybody know any good resources/articles/tutorials on how to do the whole ?page=# thing? I've been trying to see if it would be useful for me for a while. Thanks!
anwipr is offline
Reply With Quote
View Public Profile
 
Old 02-07-2007, 03:32 PM Re: Help me!
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,662
Name: John Alexander
Trades: 0
Close - the proper code is onclick="window.location='/'. Put that in your a href and change the location from / to your page.
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Help me!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.14440 seconds with 12 queries