Page 1 of 1

[SOLVED] Anchor: Only reveal the URL

Posted: Sun May 02, 2010 9:34 am
by opawaldburger
Dear Community.

I want to have an "Go to Top"-Button included into my site. Therefore the anchor-tag is just fine. The problem is, that I need to include an "id" into the code, which is not supported by the module.

So either you know a way how to include an id into the anchor-tag...

Code: Select all

{anchor anchor='top' class="my_class" id="myid" text="Go to top"}
OR you know a way of how to only reveal the URL via the anchor-tag...

Code: Select all

<a href="{anchor only-get-the-URL}">Go to top</a>
OR you have another possibility for me ;-)

Greets,
Opa

Re: Anchor: Only reveal the URL

Posted: Sun May 02, 2010 6:15 pm
by Dr.CSS
May I ask why you need an ID?...

Re: Anchor: Only reveal the URL

Posted: Sun May 02, 2010 7:10 pm
by cyberman
Have yout tried to use the onlyhref param?

Re: Anchor: Only reveal the URL

Posted: Sun May 02, 2010 7:12 pm
by opawaldburger
You may ;)

I use a script to let a div appear in the right bottom corner after one scrolled down 1000 pixels, using Dojo. When the user scrolls down the attribute opacity is set from 0 to 1. Here's the code

If you know how to modify the Dojo-Script that it works with classes, it would be fine, too. But since I have no idea, I tried another way (which didn't work actually...)

Greets,
Opa

Re: Anchor: Only reveal the URL

Posted: Sun May 02, 2010 7:15 pm
by opawaldburger
@cyberman: I did, but I tried it again now. I am such a stupid person. I just inserted the onlyhref param, but forgot to set it to 1!

Thanks you two for your help!

Greets,
Opa