We help IT Professionals succeed at work.

adobe imageready rollover affect problem

267 Views
Last Modified: 2013-12-16
hifriends
i have made a button on which i have add a rollover affect in adoe image ready.
i saved the button as jpeg.
now whn i previw it in imageready,it is workin fine.but when i insert the image
into my table in dreamwevaer,it doesnt give the rollover affect.
when i previw in imageready,it also shows the java script.i have also inserted it in my page.
still no luck.can sumone help me on this.here is the imageready code followed b  my html code where iam puttin the image.

imagready code
<SCRIPT TYPE="text/javascript">
<!--

function newImage(arg) {
      if (document.images) {
            rslt = new Image();
            rslt.src = arg;
            return rslt;
      }
}

function changeImages() {
      if (document.images && (preloadFlag == true)) {
            for (var i=0; i<changeImages.arguments.length; i+=2) {
                  document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
            }
      }
}

var preloadFlag = false;
function preloadImages() {
      if (document.images) {
            home_01_over = newImage("images/home_01-over.jpg");
            preloadFlag = true;
      }
}

// -->
</SCRIPT>
<!-- End Preload Script -->
</HEAD>
<BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 ONLOAD="preloadImages();">
<!-- ImageReady Slices (home.html) -->
<A HREF="#"
      ONMOUSEOVER="changeImages('home_01', 'images/home_01-over.jpg'); return true;"
      ONMOUSEOUT="changeImages('home_01', 'images/home_01.jpg'); return true;">
      <IMG NAME="home_01" SRC="images/home_01.jpg" WIDTH=164 HEIGHT=21 BORDER=0 ALT=""></A>
<!-- End ImageReady Slices -->




mycode

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<SCRIPT TYPE="text/javascript">
<!--

function newImage(arg) {
      if (document.images) {
            rslt = new Image();
            rslt.src = arg;
            return rslt;
      }
}

function changeImages() {
      if (document.images && (preloadFlag == true)) {
            for (var i=0; i<changeImages.arguments.length; i+=2) {
                  document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
            }
      }
}

var preloadFlag = false;
function preloadImages() {
      if (document.images) {
            home_01_over = newImage("images/home_01-over.jpg");
            preloadFlag = true;
      }
}

// -->
</SCRIPT>


</head>

<body bgcolor="#8AA5A7" text="#000000">
<div align = "center">
  <table width="66%" border="0" cellspacing="0" cellpadding="0" height="540">
    <tr>
      <td width="24%" height="93" background="side1.jpg">&nbsp;</td>
      <td width="76%" height="93" background="header.jpg">&nbsp;</td>
  </tr>
  <tr>
      <td width="24%" bgcolor="#588390" valign="top">
        <A HREF="#"
      ONMOUSEOVER="changeImages('home_01', 'images/home_01-over.jpg'); return true;"
      ONMOUSEOUT="changeImages('home_01', 'images/home_01.jpg'); return true;">
      <IMG NAME="home_01" SRC="images/home_01.jpg" WIDTH=164 HEIGHT=21 BORDER=0 ALT=""></A>

            <p>&nbsp;</p>
        <p>&nbsp;</p>
            
            

       
      </td>  
      <td width="76%">&nbsp;</td>
  </tr>
</table></div>
</body>
</html>



















Comment
Watch Question

Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
MaB

Commented:
Don't abandon the question please. Did this work for you?
MaB

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.