Jump to content

This topic is 7787 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Thanks for your answer, but I am not very familiar with javascript. Could you show me what it should look like in relation ship to my code?

<form action="FMPro" method="post" name="FormName">

<div align="center">

<input type=image name="-Find" src="buttons/home.gif" alt="" width="130" height="26" border="0"><input type=hidden name=-DB value="cases"> <input type=hidden name=-Lay value="dr"> <input type="hidden" name="-format" value="home.htm"> <input type="hidden" name="-error" value="search_error.htm"> <input type=hidden name=-max value="5"> <input type="hidden" name="-op" value="eq"><input type="hidden" name="dr_id" value="[FMP-Field: dr_id]"><input type="hidden" name="-Token" value="[FMP-Field: dr_id]"> <input type="hidden" name="-SortField" value="date_in"> <input type="hidden" name="-SortOrder" value="descend"> <input type="hidden" name="-Find" value=""></div>

</form>

Thanks again for you help

Posted

<form action="FMPro" method="post" name="FormName">

<input type=hidden name=-DB value="cases">

<input type=hidden name=-Lay value="dr">

<input type="hidden" name="-format" value="home.htm">

<input type="hidden" name="-error" value="search_error.htm">

<input type=hidden name=-max value="5">

<input type="hidden" name="-op" value="eq">

<input type="hidden" name="dr_id" value="[FMP-Field: dr_id]">

<input type="hidden" name="-Token" value="[FMP-Field: dr_id]">

<input type="hidden" name="-SortField" value="date_in">

<input type="hidden" name="-SortOrder" value="descend">

<input type="hidden" name="-Find" value="">

</form>

<a href="Javascript:document.FormName.submit();"><img src="buttons/home.gif"></a>

The image can have the regular rollover actions with "onMouseOver()" etc.

All the best.

Garry

Posted

<a href="Javascript:document.FormName.submit();">ROLLOVER CODE</a>

<a href="Javascript:document.FormName.reset();">ROLLOVER CODE</a>

in Dreamweaver:

<html>

<head>

<title>Rollover From Buttons</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)&&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.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}

}

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[n];

for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.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))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}

}

//-->

</script>

</head>

<body onLoad="MM_preloadImages('/images/SubmitOver.jpg','/images/ResetOver.jpg')">

<form action="The_Page" method="post" name="FormName">

<input name="txSomeField" type="text" id="txSomeField">

<a href="Javascript:document.FormName.submit();" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('SUBMIT','','/images/SubmitOver.jpg',1)">

<img src="/images/Submit.jpg" name="SUBMIT" width="50" height="30" border="0"></a>

<a href="Javascript:document.FormName.reset();" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('RESET','','/images/ResetOver.jpg',1)"><img src="/images/Reset.jpg" name="RESET" width="50" height="30" border="0"></a>

</form>

</body>

</html>

All the best!

This topic is 7787 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.