Jump to content

HTML Buttons in cache description


Cyberclops

Recommended Posts

I have always had embedded links to my hints and validation pages in my cache descriptions but feedback I got was that people were missing them. So, not to long ago I went through all of my caches and changed these links to nice big fat buttons. At some point something changed at GC.COM and these no longer work. I would like to understand why my buttons don't work and if there is some other way to make a button with a hyperlink work in a cache dscription.

 

Here is the HTML I was using which used to work ...

 

<button onclick="window.location='http://cyberclops.awardspace.com/geocaching/hints.php?wpt=GCXT6J&typ=SEARCH'">

<big>Click here for help<br>with this cache!</big></button>

<button onclick="window.location='http://cyberclops.awardspace.com/geocaching/validate.php?wpt=GCXT6J'">

<big>Click here to validate your<br>coordinate solution for this cache!</big></button>

Link to comment

I have always had embedded links to my hints and validation pages in my cache descriptions but feedback I got was that people were missing them. So, not to long ago I went through all of my caches and changed these links to nice big fat buttons. At some point something changed at GC.COM and these no longer work. I would like to understand why my buttons don't work and if there is some other way to make a button with a hyperlink work in a cache dscription.

 

Here is the HTML I was using which used to work ...

 

<button onclick="window.location='http://cyberclops.awardspace.com/geocaching/hints.php?wpt=GCXT6J&typ=SEARCH'">

<big>Click here for help<br>with this cache!</big></button>

<button onclick="window.location='http://cyberclops.awardspace.com/geocaching/validate.php?wpt=GCXT6J'">

<big>Click here to validate your<br>coordinate solution for this cache!</big></button>

 

The site doesn't want javascript in cache descriptions. Try using image links.

Link to comment

I have always had embedded links to my hints and validation pages in my cache descriptions but feedback I got was that people were missing them. So, not to long ago I went through all of my caches and changed these links to nice big fat buttons. At some point something changed at GC.COM and these no longer work. I would like to understand why my buttons don't work and if there is some other way to make a button with a hyperlink work in a cache dscription.

 

Here is the HTML I was using which used to work ...

 

<button onclick="window.location='http://cyberclops.awardspace.com/geocaching/hints.php?wpt=GCXT6J&typ=SEARCH'">

<big>Click here for help<br>with this cache!</big></button>

<button onclick="window.location='http://cyberclops.awardspace.com/geocaching/validate.php?wpt=GCXT6J'">

<big>Click here to validate your<br>coordinate solution for this cache!</big></button>

 

As stated on the cache edit page. "You can use HTML in any of the description fields below with the exception of JavaScript and other embedded code. "

Link to comment

What you would want to use instead is something like this:

 

<a href="http://cyberclops.awardspace.com/geocaching/hints.php?wpt=GCXT6J&typ=SEARCH"><img src="address/of/button/image.jpg"></a>

 

Which will act in the same way as your original code without offending TPTB with Javascript. Just replace 'address/of/button/image.jpg' with the URL of an image you want users to have to click on to follow the link. If you want to replicate what you had before, then there's nothing to stop you using a picture of the button :laughing:

 

There are plenty of free websites out there that will make a button graphic for you...

Link to comment
Guest
This topic is now closed to further replies.
×
×
  • Create New...