Jump to content
Sign in to follow this  
Followers 1
HuntingB

Use of flags to choose language

Recommended Posts

Hello, for my geocaching page, I want to create the functionality to add 4 flags for 4 different languages, so that if you click on a flag, you get the listing in the chosen language. I have tried to do this on a normal HTML webpage, and it works, but when I try it on geocaching.com, the links are not working. Is there somebody who can help me with this. Below is the code like I have it now. The flags are shown, but it does not link to the correct part.

 

<center>
<table style="width:80%;">
<tr>
<td>
<center><a href="#NL"><img src="https://s3.amazonaws.com/gs-geo-images/1155bb71-82b4-43fd-b769-6d2ae7812dab_l.png" height="60" width="120" /></a></center>
</td>
<td>
<center><a href="#FR"><img src="https://s3.amazonaws.com/gs-geo-images/77858e32-18bd-4135-837b-d403c589b15a_l.png" height="60" width="120" /></a></center>
</td>
<td>
<center><a href="#GE"><img src="https://s3.amazonaws.com/gs-geo-images/e8443adb-d95e-48f9-8c27-e40525a85c97_l.png" height="60" width="120" /></a></center>
</td>
<td>
<center><a href="#UK"><img src="https://s3.amazonaws.com/gs-geo-images/1666d8ea-b55c-49ad-8f9c-1a1230d3d89c_l.png" height="60" width="120" /></a></center>
</td>
</tr>
<tr>
<td>
<center><a href="#NL">Nederlands</a></center>
</td>
<td>
<center><a href="#FR">Frans</a></center>
</td>
<td>
<center><a href="#GE">Duits</a></center>
</td>
<td>
<center><a href="#UK">Engels</a></center>
</td>
</tr>
</table>
</center>
<br />
<br />
<br />
<h2>Nederlands</h2>
Deze is de Nederlandse tekst<br />
<br />
<br />
<br />
<br />
<br />
<h2>Frans</h2>
Deze is de Franse tekst<br />
<br />
<br />
<br />
<br />
<br />
<h2>Duits</h2>
Deze is de Duitse tekst<br />
<br />
<br />
<br />
<br />
<br />
<h2>Engels</h2>
Deze is de Engelse tekst

 

Share this post


Link to post

When I posted the first message I noticed not all code that entered was shown... In my original code there were lines like this:

 

<h2 id="NL">Nederlands</h2>

But this id is always removed.

Share this post


Link to post

I found this feature a long time ago but managed to avoid the problem by using an anchor:

<a name="NL" id="NL"></a><h2>Nederlands</h2>

This works

Edited by arisoft
  • Helpful 1

Share this post


Link to post

Hello, thank you for your response! It is working now!!!

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
Followers 1

×