How to put custom button.htm into page

Hello,

I have built a custom button. I have to put it in one of my page. Here I attach the button link: http://powergold.com.my/public_html/wp-content/themes/justlanded/button_common.htm
Was there anyone that can help?

  • Mohd Najib
    • Site Builder, Child of Zeus

    @Jack Kitterhing

    I've tried it ... but to no avail ... I custom button does not work at all! I create button using Adobe Firework and I export all files to html. What I found is that it is included with the custom CSS and javascript with custom. Just take a look:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <!-- saved from url=(0014)about:internet -->
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>button_common.png</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <style type="text/css">td img {display: block;}</style>
    <!--Fireworks CS3 Dreamweaver CS3 target. Created Sat Nov 16 21:48:18 GMT+0800 (Malay Peninsula Standard Time) 2013-->
    <script language="JavaScript1.2" type="text/javascript">
    <!--
    function MM_findObj(n, d) { //v4.01
    var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
    if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
    for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
    if(!x && d.getElementById) x=d.getElementById(n); return x;
    }
    function MM_swapImage() { //v3.0
    var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
    if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    }
    function MM_swapImgRestore() { //v3.0
    var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    }

    function MM_preloadImages() { //v3.0
    var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    }

    //-->
    </script>
    </head>
    <body bgcolor="#ffffff" onload="MM_preloadImages('bttn_images/button_common_r1_c2_f2.png','bttn_images/button_common_r1_c4_f2.png','bttn_images/button_common_r1_c6_f2.png','bttn_images/button_common_r1_c8_f2.png');">
    <table border="0" cellpadding="0" cellspacing="0" width="960">
    <!-- fwtable fwsrc="button_common.png" fwpage="Page 1" fwbase="button_common.png" fwstyle="Dreamweaver" fwdocid = "933001779" fwnested="0" -->
    <tr>
    <td><img src="bttn_images/spacer.gif" width="43" height="1" border="0" alt="" /></td>
    <td><img src="bttn_images/spacer.gif" width="212" height="1" border="0" alt="" /></td>
    <td><img src="bttn_images/spacer.gif" width="6" height="1" border="0" alt="" /></td>
    <td><img src="bttn_images/spacer.gif" width="212" height="1" border="0" alt="" /></td>
    <td><img src="bttn_images/spacer.gif" width="6" height="1" border="0" alt="" /></td>
    <td><img src="bttn_images/spacer.gif" width="212" height="1" border="0" alt="" /></td>
    <td><img src="bttn_images/spacer.gif" width="6" height="1" border="0" alt="" /></td>
    <td><img src="bttn_images/spacer.gif" width="212" height="1" border="0" alt="" /></td>
    <td><img src="bttn_images/spacer.gif" width="51" height="1" border="0" alt="" /></td>
    <td><img src="bttn_images/spacer.gif" width="1" height="1" border="0" alt="" /></td>
    </tr>

    <tr>
    <td><img name="button_common_r1_c1" src="bttn_images/button_common_r1_c1.png" width="43" height="210" border="0" id="button_common_r1_c1" alt="" /></td>
    <td><img name="button_common_r1_c2" src="bttn_images/button_common_r1_c2.png" width="212" height="210" border="0" id="button_common_r1_c2" alt="" /></td>
    <td><img name="button_common_r1_c3" src="bttn_images/button_common_r1_c3.png" width="6" height="210" border="0" id="button_common_r1_c3" alt="" /></td>
    <td><img name="button_common_r1_c4" src="bttn_images/button_common_r1_c4.png" width="212" height="210" border="0" id="button_common_r1_c4" alt="" /></td>
    <td><img name="button_common_r1_c5" src="bttn_images/button_common_r1_c5.png" width="6" height="210" border="0" id="button_common_r1_c5" alt="" /></td>
    <td><img name="button_common_r1_c6" src="bttn_images/button_common_r1_c6.png" width="212" height="210" border="0" id="button_common_r1_c6" alt="" /></td>
    <td><img name="button_common_r1_c7" src="bttn_images/button_common_r1_c7.png" width="6" height="210" border="0" id="button_common_r1_c7" alt="" /></td>
    <td><img name="button_common_r1_c8" src="bttn_images/button_common_r1_c8.png" width="212" height="210" border="0" id="button_common_r1_c8" alt="" /></td>
    <td><img name="button_common_r1_c9" src="bttn_images/button_common_r1_c9.png" width="51" height="210" border="0" id="button_common_r1_c9" alt="" /></td>
    <td><img src="bttn_images/spacer.gif" width="1" height="210" border="0" alt="" /></td>
    </tr>
    </table>
    </body>
    </html>

  • Mohd Najib
    • Site Builder, Child of Zeus

    @Jack Kitterhing

    I'm sorry. I have already resolved the issue. The trick is:

    1) Create a CSS file. (I do not want to use Javascript).
    2) Put the CSS file along with the theme that I use.
    3) Create an html file with a link to the CSS file.
    4) Copy & paste the HTML code into the post / page you want use a custom button using html editor.

    That's it! Thank you for your support. Cheers!

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.