CPAElites is for sale! As a result of the 2 months CEO absence: Please click [here] to read more!


Help needed regarding javascript in blogger
2014-01-06, 11:29 AM,
#1
Hello Cpaeliters,

I need a little help regarding javascript. I have a javascript code using which i can send visitors from various countries to the specified offers. But i want this script only to be active when a button is clicked. I am using blogger and if i add the javascript in the template html, it instantly triggers the script. Please tell me how i activate the javascript only on a button click and not instantly.

Waiting for your replies.
Thanks,

My Recommended Web hosting Service. Get 1 Free Domain With Just 1 Click Wordpress Install!

[Image: bh-468x60-04-dy.png]
Reply
2014-01-06, 01:13 PM,
#2
Do you know any javascript or a coding language at all?
Reply
2014-01-06, 02:50 PM,
#3
(2014-01-06, 01:13 PM)Tolini Wrote: Do you know any javascript or a coding language at all?

I don't know coding that's why i came here for help.

My Recommended Web hosting Service. Get 1 Free Domain With Just 1 Click Wordpress Install!

[Image: bh-468x60-04-dy.png]
Reply
2014-01-06, 02:51 PM,
#4
I am very new to javascript but i guess you need to use a javascript function and trigger it as the button onclick!

Like if its image <img src="http://cpaelites.com/blahblah.png" onclick="startfunction()">

Something like that i guess. :)

Join The Best Network Today And Earn REAL Money! The secret to success lies here.

[Image: jqE21u3.gif]
Reply
2014-01-06, 06:34 PM,
#5
Sorry for the late reply.

What you have to do is as Superhero says make a button or an image trigger a funtion which runs your code.

The way to make a function in javascript is the following:
Code:
function myFunctionName() {
// Code to be executed
}
Reply


Related Threads
Thread Author Replies Views Last Post
  Youtube + CPA, Need help fairchild 3 375 2020-09-28, 06:12 PM
Last Post: david1337
  S.O.S Newbie need help! cpagrip url/file locker Hektor26 12 2,872 2020-08-08, 10:28 PM
Last Post: cyberdon
  Blogger single page movie template? Doone 7 1,470 2020-06-16, 04:18 AM
Last Post: loginerror
  Need Help AdGateMedia & adscendmedia Account Disapproved ?? elkhouly 0 136 2020-05-03, 07:35 AM
Last Post: elkhouly
  need help pornhub puccilove 0 140 2020-04-24, 07:42 PM
Last Post: puccilove





About Us | Contact Us | CPAElites | Advertise | Stats

Copyright © 2013 - 2020 by (company to be announced later)
Temporarily (!) powered by MyBB, fixed (repaired) and enhanced by Charlie Harper (GitHub) aka Charles Francis Harper (Wikipedia)
Return to top
This forum uses Lukasz Tkacz MyBB addons.