sfraise
03-11-2009, 03:29 AM
I'm working on a small scrolling popup window that mimicks an instant message window. I've currently got it all set up and working however I would like a way to have multiple var html_code options that can be picked at random. For example, each option would have a different image and text in the box.
Here's the header code:
(header code)
<LINK REL=StyleSheet HREF="scrolling_popup.css"
TYPE="text/css">
<script type="text/javascript" language="javascript"
src="scrolling_popup.js"></script>
<script type="text/javascript" >
var html_code = '<table border="0" width="100%"<tr><td valign="top"><img
src="http://www.oohya.net/im.jpg" width="62"
height="77"></td><td valign="top">Hey we live close to
each other.<br>Wanna hook up?<br><br><a
href="http://www.oohya.org"
target="_blank">Reply</a></td></tr></table>';
buildPopup_HtmlCode(200, 140, 'IM from:
sweetlips21', html_code);
</script>
Here's the footer code:
(footer code)
<script type="text/javascript" >
setTimeout("ShowTheBox(true, rightSide, bottomCorner, bottopUp)",30000);
</script>
Any help on how to accomplish this would be great.
Here's the header code:
(header code)
<LINK REL=StyleSheet HREF="scrolling_popup.css"
TYPE="text/css">
<script type="text/javascript" language="javascript"
src="scrolling_popup.js"></script>
<script type="text/javascript" >
var html_code = '<table border="0" width="100%"<tr><td valign="top"><img
src="http://www.oohya.net/im.jpg" width="62"
height="77"></td><td valign="top">Hey we live close to
each other.<br>Wanna hook up?<br><br><a
href="http://www.oohya.org"
target="_blank">Reply</a></td></tr></table>';
buildPopup_HtmlCode(200, 140, 'IM from:
sweetlips21', html_code);
</script>
Here's the footer code:
(footer code)
<script type="text/javascript" >
setTimeout("ShowTheBox(true, rightSide, bottomCorner, bottopUp)",30000);
</script>
Any help on how to accomplish this would be great.