Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

HTML help onclick="startGateway('XXXXXX');"

Alright guys I have been using a template since a while now on my blog for CPA and I wanted to change a bit of code but I have a little problem.
My current code is:
Code
<a class="btn_big" href="http://www.ultrapay.org/link.php?id=1128" style="-webkit-box-shadow: rgb(0, 114, 178) 0px -4px inset; background-color: #0077d4; background-image: linear-gradient(to top, rgb(0, 92, 191), rgb(0, 110, 212)); border-bottom-color: rgb(0, 61, 153); border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-bottom-width: 1px; border-style: none none solid; border-top-left-radius: 4px; border-top-right-radius: 4px; box-shadow: rgb(0, 71, 178) 0px -4px inset; color: white; display: inline-block; font-size: 22px; height: 60px; line-height: 60px; margin: 0px; padding: 0px 30px; text-shadow: rgb(0, 87, 155) 0px 1px; text-transform: uppercase; width: 200px; zoom: 1;">DOWNLOAD</a>
But I don't want it to follow the link
Quote:http://www.ultrapay.org/link.php?id=1128

but instead open up the widget
Quote:onclick="startGateway('XXXXXX');"

and yes I have edited in "head" with
Quote:<script type="text/javascript" src="http://fileice.net/gateway/mygate.php?id=5075446a476a43426b774132514e383d"></script>

If anyone here could help me that would be truly great 🤝
PS:Yeah, I don't code
There are a couple different ways.

1:

Code
onclick="event.preventDefault();startGateway('XXXXXX');"

2:

Code
onclick="startGateway('XXXXXX');return false;"

Get a signed message before dealing: Keybase
Still here sometimes.
(Feb 10, 2015 01:16 PM)Crypto™ Wrote:  There are a couple different ways.

1:

Code
onclick="event.preventDefault();startGateway('XXXXXX');"

2:

Code
onclick="startGateway('XXXXXX');return false;"
I was going to rep you mate but it didn't work for me, here's what they say I have to do 😭 :
[Image: c0q5kJM.png]
(Feb 10, 2015 01:29 PM)Warren Buffett. Wrote:  I was going to rep you mate but it didn't work for me, here's what they say I have to do 😭 :
-snip-

If you use an image or a button, it should just work. If you use a link, those should both work. Actually, if you're using a link, try doing this instead:

Code
<a href="javascript:startGateway('XXXXXX');">Click</a>

Demo

Get a signed message before dealing: Keybase
Still here sometimes.
(Feb 10, 2015 02:49 PM)Crypto™ Wrote:  If you use an image or a button, it should just work. If you use a link, those should both work. Actually, if you're using a link, try doing this instead:

Code
<a href="javascript:startGateway('XXXXXX');">Click</a>

Demo

Ok idk it doesn't work, maybe I'm too tired. But I gave found this on the file ice forum
[Image: gUWNwsC.png]


Possibly Related Threads...
Thread / Author Replies Views Last Post
by priluxDec 10, 2016 11:18 AM 1 238 Dec 10, 2016 11:18 AM
Last Post: VirtualFrost
by gabrielchihongleeJan 19, 2016 03:00 AM 7 497 Jan 19, 2016 03:00 AM
Last Post: gabrielchihonglee
by BigGJan 26, 2015 07:51 PM 0 67 Jan 26, 2015 07:51 PM
Last Post: BigG