Jump to content


PhotoShop 7 Help


  • You cannot reply to this topic
6 replies to this topic

#1 dgabourel

    Young Padawan

  • Members
  • Pip
  • 4 posts

Posted 19 July 2005 - 08:24 PM

I'm using microsoft Front Page 2002. I made a website and a few rollover buttons in photoshop and Image ready. When i post the HTML in Front Page the images and rollovers are blank with that red little x. When i try to go over the rollovers, it gives a syntac error. What is the problem? I did load all the images in Front Page, and when i preview the web page in imageready and try ou tthe rollovers it works fine. Whats the deal with Frontapage, if that is the prob.
Pls Help

#2 ronson

    Banned For Being Purple

  • Twodded Staff
  • PipPip
  • 480 posts
  • Gender:Male
  • Location:North Yorkshire, UK
  • Interests:Rugby, Programming, Building Computers, Networking, Web Design and...........BINGE DRINKING!!!!!!.

Posted 19 July 2005 - 09:38 PM

First of all, check the code have you got the image name correct? Have you got the correct prefix? I.E. .jpg, .bmp, .gif, .tif or whatever? What have you got the image file saved as? It needs to be in .GIF format or something you can't use PSD or anything

#3 dgabourel

    Young Padawan

  • Members
  • Pip
  • 4 posts

Posted 19 July 2005 - 11:02 PM

oh, ok, but what about the rollovers, and animation will that still work if not in PSD format?

#4 ronson

    Banned For Being Purple

  • Twodded Staff
  • PipPip
  • 480 posts
  • Gender:Male
  • Location:North Yorkshire, UK
  • Interests:Rugby, Programming, Building Computers, Networking, Web Design and...........BINGE DRINKING!!!!!!.

Posted 20 July 2005 - 11:56 AM

Yeh, save it as a .GIF i think.

#5 dgabourel

    Young Padawan

  • Members
  • Pip
  • 4 posts

Posted 20 July 2005 - 07:05 PM

Yeah i tried that and I still get the same error. The rollovers won't work, everytime i place the pointer over the rollover i get that syntac error. Do i need some type of addon or something?

#6 raenef

    Code Enforcer

  • Members
  • PipPipPip
  • 540 posts
  • Location:Battle Creek, Michigan
  • Interests:Web Development and Graphic Design

Posted 20 July 2005 - 07:34 PM

Example Rollover Page Using 2 Images: Change as needed.
<!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">
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />


<script language="JavaScript" type="text/JavaScript">
<!--
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];}}
}

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];}
}
//-->
</script>
</head>

<body onload="MM_preloadImages('pathtoyourimages/home_on.png','pathtoyourimages/gallery_on.png')">


<a href="http://myhome" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('home_button','','images/home_on.png',1)">
<img src="images/home_off.png" alt="Home Button" name="home_button" width="60" height="76" border="0" id="home_button" />
</a>


<a href="http://mygallery" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('My Gallery','','images/gallery_on.png',1)">
<img src="images/gallery_off.png" alt="My Gallery" name="My Gallery" width="63" height="76" border="0" id="My Gallery" />
</a>


</body>
</html>

Maybe ya missed something in the code you were using. Hopefully this helps a little.

#7 dgabourel

    Young Padawan

  • Members
  • Pip
  • 4 posts

Posted 22 July 2005 - 01:36 AM

Great! it worked, Thanks a lot guys for the help





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users