{"id":115,"date":"2009-08-14T16:50:06","date_gmt":"2009-08-14T08:50:06","guid":{"rendered":"http:\/\/www.leadsleap.com\/blog\/how-to-create-randomized-slidesense-on-every-page-load\/"},"modified":"2009-08-14T17:01:09","modified_gmt":"2009-08-14T09:01:09","slug":"how-to-create-randomized-slidesense-on-every-page-load","status":"publish","type":"post","link":"https:\/\/leadsleap.com\/blog\/how-to-create-randomized-slidesense-on-every-page-load\/","title":{"rendered":"How To Create Randomized SlideSense On Every Page Load"},"content":{"rendered":"<p>I hope you have had a chance to try out our latest advertising tool &#8211; SlideSense.  If not, <a href=\"http:\/\/www.leadsleap.com\/slidesense\/\" target=\"_blank\">check out  this free tool here<\/a> and then come back here to learn how to add more stunts  to it.<\/p>\n<p>So far, you can only use SlideSense to promote 1 offer at a time.  If you want to promote another offer, you&#8217;ll have to create another SlideSense  and replace it with the first one.<\/p>\n<p>What if you have a few promotions to make? Or you want to create different version of SlideSense to see which one is more effective?<\/p>\n<p>This is possible IF there is a way to create different SlideSense animations and randomly  show them to your visitors, meaning to say, your regular visitors will see a different promotion whenever they  visit your website.<\/p>\n<p>(Special thanks to our member, Miriam, for suggesting this idea.)<\/p>\n<p>I thought this is a great idea. After doing some research, I found a way to do  it.<\/p>\n<p>You&#8217;ll need to manually do some changes to the SlideSense code generated, but as I always  say, it&#8217;s not rocket science.<\/p>\n<p>Ok, here&#8217;s how to do it:<\/p>\n<p>1) Generate your SlideSense code<\/p>\n<p>First, you have to generate different versions of SlideSense for testing or different offers,  using the standard <a href=\"http:\/\/www.leadsleap.com\/members\/slidesense.php\" target=\"_blank\"> SlideSense generator<\/a>. It can be a mixture of text-ad and opt-in SlideSense.<\/p>\n<p>Save the codes in a text file for later reference. Each code should look similar to this one:<\/p>\n<p><font color=\"#008000\">&lt;!&#8211; Start of LeadsLeap SlideSense Code &#8211;&gt;<\/font><font color=\"#ff6600\"><br \/>\n&lt;div style=&#8221;position:absolute;top:-2000px&#8221;&gt;&lt;img src=&#8221;http:\/\/www.leadsleap.com\/slidesense\/01left.png&#8221;  \/&gt;&lt;img src=&#8221;http:\/\/www.leadsleap.com\/slidesense\/01filler.png&#8221; \/&gt;&lt;\/div&gt;<br \/>\n<\/font><font color=\"#008000\">&lt;script language=&#8221;javascript&#8221;&gt;<br \/>\nss_options=<br \/>\n{<\/font><font color=\"#ff6600\"><br \/>\nss_speed: 1000,<br \/>\nss_remove_click: true,<br \/>\nss_direction: &#8220;bottom&#8221;,<br \/>\nss_url: &#8220;http:\/\/www.leadsleap.com&#8221;,<br \/>\nss_target: &#8220;_blank&#8221;,<br \/>\nss_delay_start: 0,<br \/>\nss_display: &#8220;every_visit&#8221;,<br \/>\nss_color: &#8220;#EBEBEB&#8221;,<br \/>\nss_html: &#8220;&lt;span style=\\&#8221;font-family:Arial;font-size:17px;color:#FFFFFF\\&#8221;&gt;&lt;b&gt;Sample  1&lt;\/b&gt;&lt;\/span&gt;&lt;br \/&gt;&lt;span  style=\\&#8221;font-family:Arial;font-size:14px;color:#FFFF00\\&#8221;&gt;&lt;b&gt;This is another  demo.&lt;\/b&gt;&lt;\/span&gt;&#8221;,<br \/>\nss_left_pic: &#8220;http:\/\/www.leadsleap.com\/slidesense\/01left.png&#8221;,<br \/>\nss_background_url: &#8220;http:\/\/www.leadsleap.com\/slidesense\/01filler.png&#8221;,<br \/>\nusername: &#8220;&#8221;<br \/>\n<\/font><font color=\"#008000\">};<br \/>\n&lt;script src=&#8221;http:\/\/www.leadsleap.com\/slidesense\/js\/slidesense.js&#8221; type=&#8221;text\/javascript&#8221;&gt;&lt;\/script&gt;<br \/>\n&lt;!&#8211; End of LeadsLeap SlideSense Code &#8211;&gt;<\/font><\/p>\n<p>2) Combine the codes into one code<\/p>\n<p>Next, you have to combine all the codes into one code using the template below:<\/p>\n<p><font color=\"#0000ff\"><font color=\"#800080\">&lt;!&#8211; Start of LeadsLeap SlideSense Code &#8211;&gt;<\/font><br \/>\n<\/font><font color=\"#ff6600\">&lt;div &#8230;.. &gt;&#8230;..&lt;\/div&gt; \/\/ Refer to Step 2<\/font><font color=\"#0000ff\"><br \/>\n<font color=\"#800080\">&lt;script language=&#8221;javascript&#8221;&gt;<br \/>\nvar howMany = 3;<br \/>\nvar ss_rotate=new Array();<br \/>\nss_rotate[0]=<br \/>\n{<\/font><br \/>\n<\/font><font color=\"#ff6600\">\u00a0 ss_&#8230;.. \/\/ Refer to Step 3<\/font><font color=\"#0000ff\"><br \/>\n<font color=\"#800080\">};<br \/>\nss_rotate[1]=<br \/>\n{<\/font><br \/>\n<\/font><font color=\"#ff6600\">\u00a0 ss_&#8230;.. \/\/ Refer to Step 3<\/font><font color=\"#0000ff\"><br \/>\n<font color=\"#800080\">};<br \/>\nss_rotate[2]=<br \/>\n{<\/font><br \/>\n<\/font><font color=\"#ff6600\">\u00a0 ss_&#8230;.. \/\/ Refer to Step 3<\/font><font color=\"#0000ff\"><br \/>\n<font color=\"#800080\">};<br \/>\nvar ss_options = ss_rotate[Math.round(Math.random()*howMany)];<br \/>\n&lt;\/script&gt;<br \/>\n&lt;script src=&#8221;http:\/\/www.leadsleap.com\/slidesense\/js\/slidesense.js&#8221; type=&#8221;text\/javascript&#8221;&gt;&lt;\/script&gt;<br \/>\n&lt;!&#8211; End of LeadsLeap SlideSense Code &#8211;&gt;<\/font><\/font><\/p>\n<p>Follow the following steps to combine the codes into one&#8230;&#8230;<\/p>\n<p><strong>Step 1 &#8211; Customize the template<\/strong><\/p>\n<p>The template above is for rotating 3 SlideSense animations.<\/p>\n<p>If you have 4 SlideSense animations, you&#8217;ll define <font color=\"#800080\">howMany<\/font> as 4 and you&#8217;ll have <font color=\"#0000ff\"> <font color=\"#800080\">ss_rotate[0]<\/font><\/font>, <font color=\"#800080\">ss_rotate[1]<\/font>, <font color=\"#800080\">ss_rotate[2]<\/font> and <font color=\"#800080\">ss_rotate[3]<\/font>.<\/p>\n<p>The rest of the code are unchanged. You can rotate any number of SlideSense  animations.<\/p>\n<p><strong>Step 2 &#8211; Combine the &lt;div &#8230;&#8230;&gt; &#8230;. &lt;\/div&gt; line from all the codes,  omitting repeated images.<\/strong><\/p>\n<p>The line &lt;div &#8230;&#8230;&gt; &#8230;. &lt;\/div&gt; is used to preload the images required to ensure  smooth animation. If all your SlideSense animations use the same set of images, you&#8217;ll  only have one line of &lt;div &#8230;&#8230;&gt; &#8230;. &lt;\/div&gt;. If all the animations use different set of images, you&#8217;ll need to include all the &lt;div &#8230;&#8230;&gt; &#8230;. &lt;\/div&gt;.<\/p>\n<p>(Don&#8217;t understand? Don&#8217;t worry. When you see the example below, you should know  what I mean.)<\/p>\n<p><strong>Step 3 &#8211; Copy and paste the parameters in the ss_options in EACH of the  SlideSense code into ss_rotate[ ]<\/strong><\/p>\n<p>ss_rotate[ ] can be <font color=\"#800080\">ss_rotate[0]<\/font>, <font color=\"#800080\">ss_rotate[1]<\/font> etc, depending on how many  SlideSense animations you&#8217;re going to rotate. Take note that you always  start with [0]. So if you have 3 animations, the first <font color=\"#008000\">ss_options<\/font> from the first  animation will go into <font color=\"#800080\">ss_rotate[0]<\/font>.<\/p>\n<p>(Don&#8217;t understand again? Don&#8217;t worry. See the example of the final combined code below.)<\/p>\n<p>After combining all the codes, the final code will look like this:<\/p>\n<p><font color=\"#0000ff\"><font color=\"#800080\">&lt;!&#8211; Start of LeadsLeap SlideSense Code &#8211;&gt;<\/font><br \/>\n<\/font><font color=\"#ff6600\">&lt;div style=&#8221;position:absolute;top:-2000px&#8221;&gt;&lt;img src=&#8221;http:\/\/www.leadsleap.com\/slidesense\/01left.png&#8221;  \/&gt;&lt;img src=&#8221;http:\/\/www.leadsleap.com\/slidesense\/01filler.png&#8221; \/&gt;&lt;\/div&gt;<br \/>\n&lt;div style=&#8221;position:absolute;top:-2000px&#8221;&gt;&lt;img src=&#8221;http:\/\/www.leadsleap.com\/slidesense\/03left.png&#8221;  \/&gt;&lt;img src=&#8221;http:\/\/www.leadsleap.com\/slidesense\/03filler.png&#8221; \/&gt;&lt;\/div&gt;<br \/>\n<\/font><font color=\"#0000ff\"><font color=\"#800080\">&lt;script language=&#8221;javascript&#8221;&gt;<br \/>\nvar howMany = 3;<br \/>\nvar ss_rotate=new Array();<br \/>\nss_rotate[0]=<br \/>\n{<\/font><br \/>\n<\/font><font color=\"#ff6600\">ss_speed: 1000,<br \/>\nss_remove_click: true,<br \/>\nss_direction: &#8220;bottom&#8221;,<br \/>\nss_url: &#8220;http:\/\/www.leadsleap.com&#8221;,<br \/>\nss_target: &#8220;_blank&#8221;,<br \/>\nss_delay_start: 0,<br \/>\nss_display: &#8220;every_visit&#8221;,<br \/>\nss_color: &#8220;#EBEBEB&#8221;,<br \/>\nss_html: &#8220;&lt;span style=\\&#8221;font-family:Arial;font-size:17px;color:#FFFFFF\\&#8221;&gt;&lt;b&gt;Sample  1&lt;\/b&gt;&lt;\/span&gt;&lt;br \/&gt;&lt;span  style=\\&#8221;font-family:Arial;font-size:14px;color:#FFFF00\\&#8221;&gt;&lt;b&gt;This is another  demo.&lt;\/b&gt;&lt;\/span&gt;&#8221;,<br \/>\nss_left_pic: &#8220;http:\/\/www.leadsleap.com\/slidesense\/01left.png&#8221;,<br \/>\nss_background_url: &#8220;http:\/\/www.leadsleap.com\/slidesense\/01filler.png&#8221;,<br \/>\nusername: &#8220;&#8221;<\/font><font color=\"#0000ff\"><br \/>\n<font color=\"#800080\">};<br \/>\nss_rotate[1]=<br \/>\n{<\/font><br \/>\n<\/font><font color=\"#ff6600\">ss_speed: 1000,<br \/>\nss_remove_click: true,<br \/>\nss_direction: &#8220;bottom&#8221;,<br \/>\nss_url: &#8220;http:\/\/www.leadsleap.com&#8221;,<br \/>\nss_target: &#8220;_blank&#8221;,<br \/>\nss_delay_start: 0,<br \/>\nss_display: &#8220;every_visit&#8221;,<br \/>\nss_color: &#8220;#EBEBEB&#8221;,<br \/>\nss_html: &#8220;&lt;span style=\\&#8221;font-family:Arial;font-size:17px;color:#FFFFFF\\&#8221;&gt;&lt;b&gt;Sample  2&lt;\/b&gt;&lt;\/span&gt;&lt;br \/&gt;&lt;span  style=\\&#8221;font-family:Arial;font-size:14px;color:#FFFF00\\&#8221;&gt;&lt;b&gt;This is another  demo.&lt;\/b&gt;&lt;\/span&gt;&#8221;,<br \/>\nss_left_pic: &#8220;http:\/\/www.leadsleap.com\/slidesense\/03left.png&#8221;,<br \/>\nss_background_url: &#8220;http:\/\/www.leadsleap.com\/slidesense\/03filler.png&#8221;,<br \/>\nusername: &#8220;&#8221;<\/font><font color=\"#0000ff\"><br \/>\n<font color=\"#800080\">};<br \/>\nss_rotate[2]=<br \/>\n{<\/font><br \/>\n<\/font><font color=\"#ff6600\">ss_speed: 1000,<br \/>\nss_remove_click: true,<br \/>\nss_direction: &#8220;bottom&#8221;,<br \/>\nss_url: &#8220;http:\/\/www.leadsleap.com&#8221;,<br \/>\nss_target: &#8220;_blank&#8221;,<br \/>\nss_delay_start: 0,<br \/>\nss_display: &#8220;every_visit&#8221;,<br \/>\nss_color: &#8220;#EBEBEB&#8221;,<br \/>\nss_html: &#8220;&lt;span style=\\&#8221;font-family:Arial;font-size:17px;color:#FFFFFF\\&#8221;&gt;&lt;b&gt;Sample  3&lt;\/b&gt;&lt;\/span&gt;&lt;br \/&gt;&lt;span  style=\\&#8221;font-family:Arial;font-size:14px;color:#FFFF00\\&#8221;&gt;&lt;b&gt;This is another  demo.&lt;\/b&gt;&lt;\/span&gt;&#8221;,<br \/>\nss_left_pic: &#8220;http:\/\/www.leadsleap.com\/slidesense\/01left.png&#8221;,<br \/>\nss_background_url: &#8220;http:\/\/www.leadsleap.com\/slidesense\/01filler.png&#8221;,<br \/>\nusername: &#8220;&#8221;<\/font><font color=\"#0000ff\"><br \/>\n<font color=\"#800080\">};<br \/>\nvar ss_options = ss_rotate[Math.round(Math.random()*howMany)];<br \/>\n&lt;\/script&gt;<br \/>\n&lt;script src=&#8221;http:\/\/www.leadsleap.com\/slidesense\/js\/slidesense.js&#8221; type=&#8221;text\/javascript&#8221;&gt;&lt;\/script&gt;<br \/>\n&lt;!&#8211; End of LeadsLeap SlideSense Code &#8211;&gt;<\/font><\/font><\/p>\n<p>That&#8217;s all. Just copy and paste the combined code to your webpage as usual and you will  see different version of SlideSense being randomly loaded whenever you load that  webpage.<\/p>\n<p>Special note: If this is your first time using SlideSense, you should start with single SlideSense. You can try creating randomize SlideSense only when you are sure that single SlideSense works on your site.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I hope you have had a chance to try out our latest advertising tool &#8211; SlideSense. If not, check out this free tool here and then come back here to learn how to add more stunts to it. So far, you can only use SlideSense to promote 1 offer at a time. If you want [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[156],"_links":{"self":[{"href":"https:\/\/leadsleap.com\/blog\/wp-json\/wp\/v2\/posts\/115"}],"collection":[{"href":"https:\/\/leadsleap.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/leadsleap.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/leadsleap.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/leadsleap.com\/blog\/wp-json\/wp\/v2\/comments?post=115"}],"version-history":[{"count":0,"href":"https:\/\/leadsleap.com\/blog\/wp-json\/wp\/v2\/posts\/115\/revisions"}],"wp:attachment":[{"href":"https:\/\/leadsleap.com\/blog\/wp-json\/wp\/v2\/media?parent=115"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/leadsleap.com\/blog\/wp-json\/wp\/v2\/categories?post=115"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/leadsleap.com\/blog\/wp-json\/wp\/v2\/tags?post=115"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}