Jump to content

[SOLVED] Change image button?


Recommended Posts

Hey Guys,


I'm trying to make a page with a table that has a background image. I want to be able to create a button that will change the table background image to something else.




<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Evan's Smartboard Solution</title>
<script type="text/javascript">
function MM_popupMsg(msg) { //v1.0
<link href="hpstype.css" rel="stylesheet" type="text/css" />

<table id="tblbg" class="wizard" border="0" align="center">
    <td width="9" height="21"> </td>
    <td colspan="3"> </td>
    <td width="10"> </td>
    <td height="417"> </td>
    <td colspan="3" align="left" valign="top"><table width="100%" border="0">
        <td width="87%" class="windowheader">Welcome - Setup Wizard (1.0)</td>
        <td width="13%" align="right">
          <input name="button2" type="button" id="button2" onclick="MM_popupMsg('Press and hold Alt + F4 to close.')" value="X" />
    <p class="text">Weclome to Evan's Smartboard Solution (Rev. 1), This wizard will guide you though how to use the smartboard solution and get everything working in no time.</p>
    <p class="text">
      <input type="button" name="button" id="button" value="Button" onmousedown="document.getElementById('tblbg').src='systemfiles/images/red7x5.png';" />
    <p> </p></td>
    <td> </td>
    <td> </td>
    <td width="135" valign="top">
      <input type="button" name="Exit" id="Exit" onclick="MM_popupMsg('Press and hold Alt + F4 to close.')" value="Exit" />
    <td width="366" align="center" valign="top"><input type="button" name="Start" id="Start" value="Start Smartboard Solution" /></td>
    <td width="158" align="right" valign="top"><input type="button" name="Next" id="Next" value="Next" /></td>
    <td> </td>

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.