Support Forums

Old 01-02-2009, 12:26 PM   #1
Member
 
Join Date: Dec 2008
Posts: 56
Rep Power: 3
island1 is on a distinguished road
Default HTML Anchor problem

I'm trying to link within my FAQ page (anchor) and it wont work. It just links me to my home page. The code is:

Code:
<h2><strong>Frequently Asked Questions</strong></h2>
<ol>
<li><a href="#faq1"><strong>How much does it cost?</strong></a></li>
<li><strong>What if I don't want my email address published?</strong></li>
</ol>
<p><strong></strong></p>
<ol>
<li><a name="faq1">Nothing!  We offer our site to you for free.</a></li>
<p> </p>
<li><strong>Unless you put your email eddress in your own listing, no one will ever see it.
The thing is, when I paste this code into the TryIt editor @w3schools, it works. So I'm at a loss.

Thanks in advance
__________________
v4.0.9 Designer
island1 is offline   Reply With Quote
Old 01-02-2009, 01:09 PM   #2
Member
 
Mango's Avatar
 
Join Date: Mar 2007
Posts: 18
Rep Power: 9
Mango is on a distinguished road
Default

Try this:

HTML Code:
<li><a href="pages.php?page=7/#faq1"><strong>How much does it cost?</strong></a></li>
Change page=7 to whatever page number your FAQ is.
__________________
Regards,

Mango
v4.0.9
Mango is offline   Reply With Quote
Old 01-02-2009, 01:09 PM   #3
Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,296
Rep Power: 37
Mike-N-Tosh is just really niceMike-N-Tosh is just really nice
Default

Since you didn't give any additional information as to what it actually does do, I'm just poking at straws here.

Try adding a target. like this <a href="#faq1" target="_self">

or try using a full url like this <a href="{$smarty.const.URL}/pages.php?page=X#faq1"> (where X=the page ID you are creating in the admin)

Hope that helps,
-Mike
__________________
Mike-N-Tosh
v3.1.10 Developer IndianaPC.org - A community website
Sandbox v4.0.9, 4.1
Templates, Mods & Docs for sale | My blog with much content for 68 Classifieds.
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Old 01-05-2009, 01:16 PM   #4
Member
 
Join Date: Dec 2008
Posts: 56
Rep Power: 3
island1 is on a distinguished road
Default

Quote:
Originally Posted by Mike-N-Tosh View Post
Since you didn't give any additional information as to what it actually does do, I'm just poking at straws here.
By "anchor" I mean a link to within the same page. So when you click on the link at the top, it scrolls down the same page to the anchor link location.
__________________
v4.0.9 Designer
island1 is offline   Reply With Quote
Old 01-05-2009, 01:20 PM   #5
Member
 
Mango's Avatar
 
Join Date: Mar 2007
Posts: 18
Rep Power: 9
Mango is on a distinguished road
Default

My posted advice does just that.
__________________
Regards,

Mango
v4.0.9
Mango is offline   Reply With Quote
Old 01-05-2009, 01:34 PM   #6
Moderator
 
 
Join Date: Mar 2006
Posts: 4,054
Rep Power: 99
Lhotch is just really niceLhotch is just really nice
Default

Quote:
Originally Posted by island1 View Post
By "anchor" I mean a link to within the same page. So when you click on the link at the top, it scrolls down the same page to the anchor link location.
As Mangi said, for smarty you will need to change the actual link to include your full path and then append the #labelname to the end of the url.......


so instead of ...

<a href="#faq1">

you will need....

<a href="http://mydomain.com/pages.php?page=6#faq1">
__________________
Larry.
(Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free)

Set your site apart from the competition with one of my modules......
Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module

68 Classifieds Important Links
Customer Area | Issue Tracker | Knowledge Base | User Manuals
Lhotch is offline   Reply With Quote

Bookmarks

Thread Tools
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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a link to seller contact form using anchor abkeller v3.1 Questions & Support 3 01-08-2008 01:02 PM
Where to put HTML <pre> tag? AdrianApe v3.1 Questions & Support 5 05-08-2007 09:45 PM
Anchor text link in viewlisting.tpl SkGold v3.1 Modules & Modifications 4 04-10-2007 11:05 PM
Problem of importation (upload) of image on HTML editor jabs v3.1 Questions & Support 3 04-05-2007 07:43 AM
html help early HTML, CSS, and Design Help 6 03-08-2007 02:43 PM


All times are GMT -4. The time now is 02:20 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0