Can you please tell me how to put this code in my html block

 

 

function randInt(min,max)


{
    

    var div = (max - min) + 1
    

    var randNum = Math.random()
     

    for (var i = 0; i <= div - 1; i++)
    

   {
      

       if (randNum >= i / div && randNum < (i+1) / div)
         

       {return i + min}
    

   }


}




 

var abc = randInt(1,5);


 

if (abc == 1) {

  

   

    document.write("<\"<a href="http://www.good-cents.com" target="_blank"><img src="http://www.linkconnector.com/traffic_record.php?lc=051837029303003895"  border="0" alt="Good-Cents Deals and Coupons"></a>\">");



 

}


 


if (abc == 2) {



    

    document.write("<\"<a href="http://www.linkconnector.com/traffic_affiliate.php?lc=051837040569003575&lcpt=0&lcpf=3" target="_blank"><img src="http://www.linkconnector.com/traffic_record.php?lc=051837040569003575"  border="0" alt="View the Collection"></a>\">");


 


}



 

if (abc == 3) {

    

 

    document.write("<\"<a href="http://www.linkconnector.com/traffic_affiliate.php?lc=051837025117003265" target="_blank"><img src="http://www.linkconnector.com/traffic_record.php?lc=051837025117003265"  border="0" alt="Bags and Totes"></a>\">");



 

}


Quote · 22 Sep 2011

This is a rotating banner 

Quote · 22 Sep 2011

You need to enter this directly, which can be done by clicking the HTML button in the editor's toolbar. You also need to add <script type="text/javascript"> before and </script> after the code.

 

I don't know if this will even work. Dolphin strips out a lot of code, so you may need to enter this directly into the database.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 22 Sep 2011

thanks, I'm trying to avoid that. I don't know enough about the database and php. I'M SCARED I would hate to mess up my site. Dolphin has given mr enough stress. lol

Quote · 22 Sep 2011

see I can't even spell me

Quote · 22 Sep 2011

 how to do this without blowing up something:

see I can't even spell me

 create the html block: naming the block what you desire it to be named:

add something in the block Happy Halloween or something. 

 

this creates the block and does the insert into the database for you. 

 

this block gets created on the table sys_page_compose

however you dont have to fret on that. from phpmyadmin select the database you are using, then there is a search option on the tabs. search for Halloween (unique word which should show up only once) .

now you should see on the page, a link to sys_page_compose with 1 result. click on  the link which will open that table, and that record. 

click on the pencil to edit

look for where you have the words Happy Halloween, and paste your javascript into that field. 

hope thats not too much for you. 

*NOTE* if you opt for this, please backup prior to any attempt at modifying the database. 

When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support
Quote · 22 Sep 2011

Thanks, I was trying to just use html. That would be easier for me. I would most likely go in it everyday to add and remove songs

Quote · 23 Sep 2011
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.