Help needed regarding javascript in blogger
2014-01-06, 02:59 PM,
#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, 04:43 PM,
#2
Do you know any javascript or a coding language at all?
Reply
2014-01-06, 06:20 PM,
#3
(2014-01-06, 04:43 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, 06:21 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, 10:04 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


Possibly Related Threads...
Thread Author Replies Views Last Post
  UAE traffic is urgently needed. 1moneyman123 2 145 2017-10-25, 11:35 PM
Last Post: interwent
  Traffic needed for cpa offers naulodesign 7 373 2017-10-06, 01:50 AM
Last Post: stephanie12
  How to share blogger website on AddMeFast No Fear 8 1,203 2017-09-28, 07:04 PM
Last Post: grenadez
  No conversion help needed total newbie naulodesign 3 213 2017-09-21, 12:58 PM
Last Post: EnChanter
  Needed help with cent os 7 PoS3!DoN 3 115 2017-09-15, 12:23 AM
Last Post: GopherDomains





About Us | Contact Us | CPA Elites | Advertise | Stats | Staff Team

© 2013-2017 CPA Elites Ltd
Enhanced by MyBB and WallBB
Return to top