the page giving issues uses three functions.
mlu() is suppossed to update the location of an image corresponding to a select box (it's called by the selectbox using onChange, i have something similar elsewhere theat works.).
preImgUp() is suppossed to change an iframe (i have a similar thing that changes frames correctly, so i'm perplexed as to why it's not working here) the iframe gerts re-written to display an image (i'm hoping the browsers will query the server for the new image. as of now i expect to get a broken image since i don't have the domain pointing anywhere)
moodselector() is suppossed to take the current mood and mood image location and insert them into a form in the document that called this one. i know all the form names are correct.
currently JAM is the only one of you with an account there, and therfore the only one who can access the pages directly. if anyone would like screen shots i will take them and post them so you can see the layout.
thanx in advance for the help
code for the page with the issue:
Code: Select all
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>FindYourDesire.com -- Help With moods</title>
<meta name="Author" content="Pages coded by Josh Perlmutter for Desired Creations LLC">
<meta name="Author" content="Graphics created by ? for Desired Creations LLC">
<meta name="Author" content="Smileys created by ? for Desired Creations LLC">
<style type="text/css">
@import url(textStyle.css);
</style>
</head>
<body>
<p>This is to help find an internal image/mood combination. You may override this with a mood or image of your own after choosing here</p>
<form name="moodfind" onReset="window.close();" onSubmit="return moodselector();">
<table cellspacing="0" class="regnw">
<tr>
<td><select name="mood" onChange="return mlu();"><option value="http://www.FindYourDesire.com/sitepics/smilies/angry.gif">angry</option><option value="http://www.FindYourDesire.com/sitepics/smilies/broken-hearted.gif">broken-hearted</option><option value="http://www.FindYourDesire.com/sitepics/smilies/love.gif">love</option></select></td>
<td><input type="text" name="mil" value=""></td>
<td><input type="button" onClick="return prevImgUp();" value="Preview Image"></td>
</tr>
<tr>
<td class="center"><input type="reset" value="I'll use my own"></td>
<td class="center"><input type="submit" value="I wanna use these"></td>
<td class="previmg"><iframe name="imgview" src="/findyourdesire/help.php?disp=blank"></iframe></td>
</tr>
</table>
</form>
<script language="Javascript">
function moodselector(){ // sets mood and mood image location
var mood=document.moodfind.mood.value; // what is the mood?
var mil='http://www.FindYourDesire.com/sitepics/smilies/'+mood+'gif'; // where is the image?
window.opener(document.entry.mood=mood); // set the mood
window.opener(document.entry.mil=mil); // set the mood image location
window.self.close(); // close THIS window
}
function mlu(){ // update the mood image location
var mood=document.moodfind.mood.value; // what is the mood?
var mil='http://www.FindYourDesire.com/sitepics/smilies/'+mood+'gif'; // where is the image?
document.moodfind.mil.value=mil; // set the image location
}
function prevImgUp(){ // updates preview of mood image
var mood=document.moodfind.mood.value; // what is the mood?
var mil='http://www.FindYourDesire.com/sitepics/smilies/'+mood+'gif'; // where is the image?
var newpg='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Mood Image Preview</title>
<style type="text/css">
@import url(textStyle.css);
</style>
</head>
<body>
<img src="'+mil+'" alt="'+mood+'">
</body>
</html>'; // new image page
window.imgview.document.open(); // open the iframe for witing
window.imgview.document.write(newpg); // update the image
window.imgview.document.close(); // close the iframe
}
</script>
<p>
<span class="pgcls">
<br />Pages coded by Josh Perlmutter for Desired Creations LLC
<br />Graphics created by ? for Desired Creations LLC
<br />Smileys created by ? for Desired Creations LLC
<br />All creations copyrighted by their respective Creators. Reproduction Requires Consent of the Creator and Desired Creations LLC.
</span>
</p>
</body>
</html>