Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's
Author Message
junkingusa
New Member
New Member


Joined: Feb 21, 2005
Posts: 9

PostPosted: Mon Feb 21, 2005 5:36 pm Reply with quote

As I mentioned in my 1st post, I'm writting a new module, it is to generate templates for auction listings like ebay, but will work on any of the auction sites. It's all done except for the color picker and I need a preview window.

Currently, I am not using the DB which I figure would solve this problem, but would rather not if I can get away from it for now. I have the entire template html code in one field called $html which shows up under a Forms text area. I can't show the preview inside of phpnuke (7.5) as the style sheet takes over and ignors the template formats... so I need to offer a preview link that will popup a window, totally outside of phpnuke. I've tried lots of differenet ways of doing this, and none of them really work .. something like a dynamic html page, maybe? ..

If anyone has any ideas on where I can look even, that would help. Or something that does something like this that I can look at? or instructions on how to do this? is it even possilbe? or do I just need to go the db route?

Thanks for any recommendations or advise!
 
View user's profile Send private message
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

PostPosted: Mon Feb 21, 2005 8:02 pm Reply with quote

Well that cant be to difficult,but maybe i understand this very wrong....
But does this help...?
Ive seen them a lot better...but here's an idea...
(note : because of security the full word java script cannot be posted ...so put the words in the script back in place...)

Code:


<HTML>
<HEAD><TITLE></TITLE>
</HEAD>
<BODY>
<FONT FACE="MS Sans serif,Tahoma,Helvetica" SIZE="2">
<div id="previewlayer" style="visibility:hidden;">
<SCR      IPT LANGUAGE="Java   Script">
var bcolor="#FFFFFF";
var tcolor="#000000";
function ali(){
var win = window.open("",null, "left=100, top=100, width=320, height=150, location=no, toolbar=no, menubar=no, scrollbars=no, resizable=no");
win.document.write("<HEAD><TITLE>Preview Window</TITLE></HEAD><BODY BGCOLOR='" + bcolor + "' TEXT='" + tcolor + "'><CENTER><B>This is what this color combination looks like.....Close this window before the next preview:<BR><INPUT TYPE=BUTTON VALUE='Close' onClick='window.close()'></CENTER><P><BR></B></BODY>");
colorform.chosenbcolor.value = bcolor;
colorform.chosentcolor.value = tcolor;
}
</SC     RIPT>
</DIV>
<table cellpadding="2" cellspacing="2"  border="1" bgcolor="#727272" bordercolor="#AAAAAA" bordercolordark="#AAAAAA" bordercolorlight="#AAAAAA">
<tr><td colspan="2">
<B><CENTER><FONT COLOR="#FFFFFF">Color Picker</FONT> <font size="1">(Click on a colour then click on Preview, the hexadicimal code will appear after you have clicked the preview button)</font></CENTER></B>
</td></tr>
<tr><td>
<table cellpadding="1" cellspacing="1"  border="1" bgcolor="#727272" bordercolor="#000000" bordercolordark="#000000" bordercolorlight="#000000">
    <tr height="25">
        <td bgcolor="#727272" colspan="18"><CENTER><B><FONT COLOR="#FFFFFF">Choose a text color</FONT></B></CENTER>
        </td>     
    </tr>   
    <tr height="15">
        <td width="15" bgcolor="#000000" onClick="tcolor='#000000'">   
        </td>
        <td width="15" bgcolor="#000033" onClick="tcolor='#000033'"> 
        </td>
   <td width="15" bgcolor="#000066" onClick="tcolor='#000066'">
        </td>
   <td width="15" bgcolor="#000099" onClick="tcolor='#000099'">   
        </td>
        <td width="15" bgcolor="#0000CC" onClick="tcolor='#0000CC'"> 
        </td>
   <td width="15" bgcolor="#0000FF" onClick="tcolor='#0000FF'">
        </td>
   <td width="15" bgcolor="#003300" onClick="tcolor='#003300'">   
        </td>
        <td width="15" bgcolor="#003333" onClick="tcolor='#003333'"> 
        </td>
   <td width="15" bgcolor="#003366" onClick="tcolor='#003366'">
        </td>
   <td width="15" bgcolor="#003399" onClick="tcolor='#003399'">   
        </td>
        <td width="15" bgcolor="#0033CC" onClick="tcolor='#0033CC'"> 
        </td>
   <td width="15" bgcolor="#0033FF" onClick="tcolor='#0033FF'">
        </td>
   <td width="15" bgcolor="#006600" onClick="tcolor='#006600'">   
        </td>
        <td width="15" bgcolor="#006633" onClick="tcolor='#006633'"> 
        </td>
   <td width="15" bgcolor="#006666" onClick="tcolor='#006666'">
        </td>
   <td width="15" bgcolor="#006699" onClick="tcolor='#006699'">   
        </td>
        <td width="15" bgcolor="#0066CC" onClick="tcolor='#0066CC'"> 
        </td>
   <td width="15" bgcolor="#0066FF" onClick="tcolor='#0066FF'">
        </td>
    </tr>   
    <tr height="15">
        <td width="15" bgcolor="#009900" onClick="tcolor='#009900'">   
        </td>
        <td width="15" bgcolor="#009933" onClick="tcolor='#009933'"> 
        </td>
   <td width="15" bgcolor="#009966" onClick="tcolor='#009966'">
        </td>
   <td width="15" bgcolor="#009999" onClick="tcolor='#009999'">   
        </td>
        <td width="15" bgcolor="#0099CC" onClick="tcolor='#0099CC'"> 
        </td>
   <td width="15" bgcolor="#0099FF" onClick="tcolor='#0099FF'"> 
        </td>
   <td width="15" bgcolor="#00CC00" onClick="tcolor='#00CC00'">
        </td>
   <td width="15" bgcolor="#00CC33" onClick="tcolor='#00CC33'">   
        </td>
        <td width="15" bgcolor="#00CC66" onClick="tcolor='#00CC66'"> 
        </td>
   <td width="15" bgcolor="#00CC99" onClick="tcolor='#00CC99'">
        </td>
   <td width="15" bgcolor="#00CCCC" onClick="tcolor='#00CCCC'">   
        </td>
        <td width="15" bgcolor="#00CCFF" onClick="tcolor='#00CCFF'"> 
        </td>
   <td width="15" bgcolor="#00FF00" onClick="tcolor='#00FF00'">
        </td>
   <td width="15" bgcolor="#00FF33" onClick="tcolor='#00FF33'">   
        </td>
        <td width="15" bgcolor="#00FF66" onClick="tcolor='#00FF66'"> 
        </td>
   <td width="15" bgcolor="#00FF99" onClick="tcolor='#00FF99'">
        </td>
   <td width="15" bgcolor="#00FFCC" onClick="tcolor='#00FFCC'">   
        </td>
   <td width="15" bgcolor="#00FFFF" onClick="tcolor='#00FFFF'">
        </td>
    </tr>       
     <tr height="15">
        <td width="15" bgcolor="#330000" onClick="tcolor='#330000'">   
        </td>
        <td width="15" bgcolor="#330033" onClick="tcolor='#330033'"> 
        </td>
   <td width="15" bgcolor="#330066" onClick="tcolor='#330066'">
        </td>
   <td width="15" bgcolor="#330099" onClick="tcolor='#330099'">   
        </td>
        <td width="15" bgcolor="#3300CC" onClick="tcolor='#3300CC'"> 
        </td>
   <td width="15" bgcolor="#3300FF" onClick="tcolor='#3300FF'"> 
        </td>
   <td width="15" bgcolor="#333300" onClick="tcolor='#333300'">
        </td>
   <td width="15" bgcolor="#333333" onClick="tcolor='#333333'">   
        </td>
        <td width="15" bgcolor="#333366" onClick="tcolor='#333366'"> 
        </td>
   <td width="15" bgcolor="#333399" onClick="tcolor='#333399'">
        </td>
   <td width="15" bgcolor="#3333CC" onClick="tcolor='#3333CC'">   
        </td>
        <td width="15" bgcolor="#3333FF" onClick="tcolor='#3333FF'"> 
        </td>
   <td width="15" bgcolor="#336600" onClick="tcolor='#336600'">
        </td>
   <td width="15" bgcolor="#336633" onClick="tcolor='#336633'">   
        </td>
        <td width="15" bgcolor="#336666" onClick="tcolor='#336666'"> 
        </td>
   <td width="15" bgcolor="#336699" onClick="tcolor='#336699'">
        </td>
   <td width="15" bgcolor="#3366CC" onClick="tcolor='#3366CC'">   
        </td>
   <td width="15" bgcolor="#3366FF" onClick="tcolor='#3366FF'">
        </td>
    </tr>   
    <tr height="15">
        <td width="15" bgcolor="#339900" onClick="tcolor='#339900'">   
        </td>
        <td width="15" bgcolor="#339933" onClick="tcolor='#339933'"> 
        </td>
   <td width="15" bgcolor="#339966" onClick="tcolor='#339966'">
        </td>
   <td width="15" bgcolor="#339999" onClick="tcolor='#339999'">   
        </td>
        <td width="15" bgcolor="#3399CC" onClick="tcolor='#3399CC'"> 
        </td>
   <td width="15" bgcolor="#3399FF" onClick="tcolor='#3399FF'"> 
        </td>
   <td width="15" bgcolor="#33CC00" onClick="tcolor='#33CC00'">
        </td>
   <td width="15" bgcolor="#33CC33" onClick="tcolor='#33CC33'">   
        </td>
        <td width="15" bgcolor="#33CC66" onClick="tcolor='#33CC66'"> 
        </td>
   <td width="15" bgcolor="#33CC99" onClick="tcolor='#33CC99'">
        </td>
   <td width="15" bgcolor="#33CCCC" onClick="tcolor='#33CCCC'">   
        </td>
        <td width="15" bgcolor="#33CCFF" onClick="tcolor='#33CCFF'"> 
        </td>
   <td width="15" bgcolor="#33FF00" onClick="tcolor='#33FF00'">
        </td>
   <td width="15" bgcolor="#33FF33" onClick="tcolor='#33FF33'">   
        </td>
        <td width="15" bgcolor="#33FF66" onClick="tcolor='#33FF66'"> 
        </td>
   <td width="15" bgcolor="#33FF99" onClick="tcolor='#33FF99'">
        </td>
   <td width="15" bgcolor="#33FFCC" onClick="tcolor='#33FFCC'">   
        </td>
   <td width="15" bgcolor="#33FFFF" onClick="tcolor='#33FFFF'">
        </td>
    </tr>
    <tr height="15">
        <td width="15" bgcolor="#660000" onClick="tcolor='#660000'">   
        </td>
        <td width="15" bgcolor="#660033" onClick="tcolor='#660033'"> 
        </td>
   <td width="15" bgcolor="#660066" onClick="tcolor='#660066'">
        </td>
   <td width="15" bgcolor="#660099" onClick="tcolor='#660099'">   
        </td>
        <td width="15" bgcolor="#6600CC" onClick="tcolor='#6600CC'"> 
        </td>
   <td width="15" bgcolor="#6600FF" onClick="tcolor='#6600FF'"> 
        </td>
   <td width="15" bgcolor="#663300" onClick="tcolor='#663300'">
        </td>
   <td width="15" bgcolor="#663333" onClick="tcolor='#663333'">   
        </td>
        <td width="15" bgcolor="#663366" onClick="tcolor='#663366'"> 
        </td>
   <td width="15" bgcolor="#663399" onClick="tcolor='#663399'">
        </td>
   <td width="15" bgcolor="#6633CC" onClick="tcolor='#6633CC'">   
        </td>
        <td width="15" bgcolor="#6633FF" onClick="tcolor='#6633FF'"> 
        </td>
   <td width="15" bgcolor="#666600" onClick="tcolor='#666600'">
        </td>
   <td width="15" bgcolor="#666633" onClick="tcolor='#666633'">   
        </td>
        <td width="15" bgcolor="#666666" onClick="tcolor='#666666'"> 
        </td>
   <td width="15" bgcolor="#666699" onClick="tcolor='#666699'">
        </td>
   <td width="15" bgcolor="#6666CC" onClick="tcolor='#6666CC'">   
        </td>
   <td width="15" bgcolor="#6666FF" onClick="tcolor='#6666FF'">
        </td>
    </tr>
    <tr height="15">
        <td width="15" bgcolor="#669900" onClick="tcolor='#669900'">   
        </td>
        <td width="15" bgcolor="#669933" onClick="tcolor='#669933'"> 
        </td>
   <td width="15" bgcolor="#669966" onClick="tcolor='#669966'">
        </td>
   <td width="15" bgcolor="#669999" onClick="tcolor='#669999'">   
        </td>
        <td width="15" bgcolor="#6699CC" onClick="tcolor='#6699CC'"> 
        </td>
   <td width="15" bgcolor="#6699FF" onClick="tcolor='#6699FF'"> 
        </td>
   <td width="15" bgcolor="#66CC00" onClick="tcolor='#66CC00'">
        </td>
   <td width="15" bgcolor="#66CC33" onClick="tcolor='#66CC33'">   
        </td>
        <td width="15" bgcolor="#66CC66" onClick="tcolor='#66CC66'"> 
        </td>
   <td width="15" bgcolor="#66CC99" onClick="tcolor='#66CC99'">
        </td>
   <td width="15" bgcolor="#66CCCC" onClick="tcolor='#66CCCC'">   
        </td>
        <td width="15" bgcolor="#66CCFF" onClick="tcolor='#66CCFF'"> 
        </td>
   <td width="15" bgcolor="#66FF00" onClick="tcolor='#66FF00'">
        </td>
   <td width="15" bgcolor="#66FF33" onClick="tcolor='#66FF33'">   
        </td>
        <td width="15" bgcolor="#66FF66" onClick="tcolor='#66FF66'"> 
        </td>
   <td width="15" bgcolor="#66FF99" onClick="tcolor='#66FF99'">
        </td>
   <td width="15" bgcolor="#66FFCC" onClick="tcolor='#66FFCC'">   
        </td>
   <td width="15" bgcolor="#66FFFF" onClick="tcolor='#66FFFF'">
        </td>
    </tr>
    <tr height="15">
        <td width="15" bgcolor="#990000" onClick="tcolor='#990000'">   
        </td>
        <td width="15" bgcolor="#990033" onClick="tcolor='#990033'"> 
        </td>
   <td width="15" bgcolor="#990066" onClick="tcolor='#990066'">
        </td>
   <td width="15" bgcolor="#990099" onClick="tcolor='#990099'">   
        </td>
        <td width="15" bgcolor="#9900CC" onClick="tcolor='#9900CC'"> 
        </td>
   <td width="15" bgcolor="#9900FF" onClick="tcolor='#9900FF'"> 
        </td>
   <td width="15" bgcolor="#993300" onClick="tcolor='#993300'">
        </td>
   <td width="15" bgcolor="#993333" onClick="tcolor='#993333'">   
        </td>
        <td width="15" bgcolor="#993366" onClick="tcolor='#993366'"> 
        </td>
   <td width="15" bgcolor="#993399" onClick="tcolor='#993399'">
        </td>
   <td width="15" bgcolor="#9933CC" onClick="tcolor='#9933CC'">   
        </td>
        <td width="15" bgcolor="#9933FF" onClick="tcolor='#9933FF'"> 
        </td>
   <td width="15" bgcolor="#996600" onClick="tcolor='#996600'">
        </td>
   <td width="15" bgcolor="#996633" onClick="tcolor='#996633'">   
        </td>
        <td width="15" bgcolor="#996666" onClick="tcolor='#996666'"> 
        </td>
   <td width="15" bgcolor="#996699" onClick="tcolor='#996699'">
        </td>
   <td width="15" bgcolor="#9966CC" onClick="tcolor='#9966CC'">   
        </td>
   <td width="15" bgcolor="#9966FF" onClick="tcolor='#9966FF'">
        </td>
    </tr>
    <tr height="15">
        <td width="15" bgcolor="#999900" onClick="tcolor='#999900'">   
        </td>
        <td width="15" bgcolor="#999933" onClick="tcolor='#999933'"> 
        </td>
   <td width="15" bgcolor="#999966" onClick="tcolor='#999966'">
        </td>
   <td width="15" bgcolor="#999999" onClick="tcolor='#999999'">   
        </td>
        <td width="15" bgcolor="#9999CC" onClick="tcolor='#9999CC'"> 
        </td>
   <td width="15" bgcolor="#9999FF" onClick="tcolor='#9999FF'"> 
        </td>
   <td width="15" bgcolor="#99CC00" onClick="tcolor='#99CC00'">
        </td>
   <td width="15" bgcolor="#99CC33" onClick="tcolor='#99CC33'">   
        </td>
        <td width="15" bgcolor="#99CC66" onClick="tcolor='#99CC66'"> 
        </td>
   <td width="15" bgcolor="#99CC99" onClick="tcolor='#99CC99'">
        </td>
   <td width="15" bgcolor="#99CCCC" onClick="tcolor='#99CCCC'">   
        </td>
        <td width="15" bgcolor="#99CCFF" onClick="tcolor='#99CCFF'"> 
        </td>
   <td width="15" bgcolor="#99FF00" onClick="tcolor='#99FF00'">
        </td>
   <td width="15" bgcolor="#99FF33" onClick="tcolor='#99FF33'">   
        </td>
        <td width="15" bgcolor="#99FF66" onClick="tcolor='#99FF66'"> 
        </td>
   <td width="15" bgcolor="#99FF99" onClick="tcolor='#99FF99'">
        </td>
   <td width="15" bgcolor="#99FFCC" onClick="tcolor='#99FFCC'">   
        </td>
   <td width="15" bgcolor="#99FFFF" onClick="tcolor='#99FFFF'">
        </td>
    </tr>
    <tr height="15">
        <td width="15" bgcolor="#CC0000" onClick="tcolor='#CC0000'">   
        </td>
        <td width="15" bgcolor="#CC0033" onClick="tcolor='#CC0033'"> 
        </td>
   <td width="15" bgcolor="#CC0066" onClick="tcolor='#CC0066'">
        </td>
   <td width="15" bgcolor="#CC0099" onClick="tcolor='#CC0099'">   
        </td>
        <td width="15" bgcolor="#CC00CC" onClick="tcolor='#CC00CC'"> 
        </td>
   <td width="15" bgcolor="#CC00FF" onClick="tcolor='#CC00FF'"> 
        </td>
   <td width="15" bgcolor="#CC3300" onClick="tcolor='#CC3300'">
        </td>
   <td width="15" bgcolor="#CC3333" onClick="tcolor='#CC3333'">   
        </td>
        <td width="15" bgcolor="#CC3366" onClick="tcolor='#CC3366'"> 
        </td>
   <td width="15" bgcolor="#CC3399" onClick="tcolor='#CC3399'">
        </td>
   <td width="15" bgcolor="#CC33CC" onClick="tcolor='#CC33CC'">   
        </td>
        <td width="15" bgcolor="#CC33FF" onClick="tcolor='#CC33FF'"> 
        </td>
   <td width="15" bgcolor="#CC6600" onClick="tcolor='#CC6600'">
        </td>
   <td width="15" bgcolor="#CC6633" onClick="tcolor='#CC6633'">   
        </td>
        <td width="15" bgcolor="#CC6666" onClick="tcolor='#CC6666'"> 
        </td>
   <td width="15" bgcolor="#CC6699" onClick="tcolor='#CC6699'">
        </td>
   <td width="15" bgcolor="#CC66CC" onClick="tcolor='#CC66CC'">   
        </td>
   <td width="15" bgcolor="#CC66FF" onClick="tcolor='#CC66FF'">
        </td>
    </tr>
    <tr height="15">
        <td width="15" bgcolor="#CC9900" onClick="tcolor='#CC9900'">   
        </td>
        <td width="15" bgcolor="#CC9933" onClick="tcolor='#CC9933'"> 
        </td>
   <td width="15" bgcolor="#CC9966" onClick="tcolor='#CC9966'">
        </td>
   <td width="15" bgcolor="#CC9999" onClick="tcolor='#CC9999'">   
        </td>
        <td width="15" bgcolor="#CC99CC" onClick="tcolor='#CC99CC'"> 
        </td>
   <td width="15" bgcolor="#CC99FF" onClick="tcolor='#CC99FF'"> 
        </td>
   <td width="15" bgcolor="#CCCC00" onClick="tcolor='#CCCC00'">
        </td>
   <td width="15" bgcolor="#CCCC33" onClick="tcolor='#CCCC33'">   
        </td>
        <td width="15" bgcolor="#CCCC66" onClick="tcolor='#CCCC66'"> 
        </td>
   <td width="15" bgcolor="#CCCC99" onClick="tcolor='#CCCC99'">
        </td>
   <td width="15" bgcolor="#CCCCCC" onClick="tcolor='#CCCCCC'">   
        </td>
        <td width="15" bgcolor="#CCCCFF" onClick="tcolor='#CCCCFF'"> 
        </td>
   <td width="15" bgcolor="#CCFF00" onClick="tcolor='#CCFF00'">
        </td>
   <td width="15" bgcolor="#CCFF33" onClick="tcolor='#CCFF33'">   
        </td>
        <td width="15" bgcolor="#CCFF66" onClick="tcolor='#CCFF66'"> 
        </td>
   <td width="15" bgcolor="#CCFF99" onClick="tcolor='#CCFF99'">
        </td>
   <td width="15" bgcolor="#CCFFCC" onClick="tcolor='#CCFFCC'">   
        </td>
   <td width="15" bgcolor="#CCFFFF" onClick="tcolor='#CCFFFF'">
        </td>
    </tr>
    <tr height="15">
        <td width="15" bgcolor="#FF0000" onClick="tcolor='#FF0000'">   
        </td>
        <td width="15" bgcolor="#FF0033" onClick="tcolor='#FF0033'"> 
        </td>
   <td width="15" bgcolor="#FF0066" onClick="tcolor='#FF0066'">
        </td>
   <td width="15" bgcolor="#FF0099" onClick="tcolor='#FF0099'">   
        </td>
        <td width="15" bgcolor="#FF00CC" onClick="tcolor='#FF00CC'"> 
        </td>
   <td width="15" bgcolor="#FF00FF" onClick="tcolor='#FF00FF'"> 
        </td>
   <td width="15" bgcolor="#FF3300" onClick="tcolor='#FF3300'">
        </td>
   <td width="15" bgcolor="#FF3333" onClick="tcolor='#FF3333'">   
        </td>
        <td width="15" bgcolor="#FF3366" onClick="tcolor='#FF3366'"> 
        </td>
   <td width="15" bgcolor="#FF3399" onClick="tcolor='#FF3399'">
        </td>
   <td width="15" bgcolor="#FF33CC" onClick="tcolor='#FF33CC'">   
        </td>
        <td width="15" bgcolor="#FF33FF" onClick="tcolor='#FF33FF'"> 
        </td>
   <td width="15" bgcolor="#FF6600" onClick="tcolor='#FF6600'">
        </td>
   <td width="15" bgcolor="#FF6633" onClick="tcolor='#FF6633'">   
        </td>
        <td width="15" bgcolor="#FF6666" onClick="tcolor='#FF6666'"> 
        </td>
   <td width="15" bgcolor="#FF6699" onClick="tcolor='#FF6699'">
        </td>
   <td width="15" bgcolor="#FF66CC" onClick="tcolor='#FF66CC'">   
        </td>
   <td width="15" bgcolor="#FF66FF" onClick="tcolor='#FF66FF'">
        </td>
    </tr>
    <tr height="15">
        <td width="15" bgcolor="#FF9900" onClick="tcolor='#FF9900'">   
        </td>
        <td width="15" bgcolor="#FF9933" onClick="tcolor='#FF9933'"> 
        </td>
   <td width="15" bgcolor="#FF9966" onClick="tcolor='#FF9966'">
        </td>
   <td width="15" bgcolor="#FF9999" onClick="tcolor='#FF9999'">   
        </td>
        <td width="15" bgcolor="#FF99CC" onClick="tcolor='#FF99CC'"> 
        </td>
   <td width="15" bgcolor="#FF99FF" onClick="tcolor='#FF99FF'"> 
        </td>
   <td width="15" bgcolor="#FFCC00" onClick="tcolor='#FFCC00'">
        </td>
   <td width="15" bgcolor="#FFCC33" onClick="tcolor='#FFCC33'">   
        </td>
        <td width="15" bgcolor="#FFCC66" onClick="tcolor='#FFCC66'"> 
        </td>
   <td width="15" bgcolor="#FFCC99" onClick="tcolor='#FFCC99'">
        </td>
   <td width="15" bgcolor="#FFCCCC" onClick="tcolor='#FFCCCC'">   
        </td>
        <td width="15" bgcolor="#FFCCFF" onClick="tcolor='#FFCCFF'"> 
        </td>
   <td width="15" bgcolor="#FFFF00" onClick="tcolor='#FFFF00'">
        </td>
   <td width="15" bgcolor="#FFFF33" onClick="tcolor='#FFFF33'">   
        </td>
        <td width="15" bgcolor="#FFFF66" onClick="tcolor='#FFFF66'"> 
        </td>
   <td width="15" bgcolor="#FFFF99" onClick="tcolor='#FFFF99'">
        </td>
   <td width="15" bgcolor="#FFFFCC" onClick="tcolor='#FFFFCC'">   
        </td>
   <td width="15" bgcolor="#FFFFFF" onClick="tcolor='#FFFFFF'">
        </td>
    </tr>
</table>

</td><td>

<table cellpadding="1" cellspacing="1" border="1" bgcolor="#727272" bordercolor="#C0C0C0" bordercolordark="#000000" bordercolorlight="#000000">
<tr height="25">
<td bgcolor="#727272" colspan="18"><CENTER><B><FONT COLOR="#FFFFFF">Choose a background color</FONT></B></CENTER>
</td>
</tr>
<tr height="15">
<td width="15" bgcolor="#000000" onClick="bcolor='#000000'">
</td>
<td width="15" bgcolor="#000033" onClick="bcolor='#000033'">
</td>
<td width="15" bgcolor="#000066" onClick="bcolor='#000066'">
</td>
<td width="15" bgcolor="#000099" onClick="bcolor='#000099'">
</td>
<td width="15" bgcolor="#0000CC" onClick="bcolor='#0000CC'">
</td>
<td width="15" bgcolor="#0000FF" onClick="bcolor='#0000FF'">
</td>
<td width="15" bgcolor="#003300" onClick="bcolor='#003300'">
</td>
<td width="15" bgcolor="#003333" onClick="bcolor='#003333'">
</td>
<td width="15" bgcolor="#003366" onClick="bcolor='#003366'">
</td>
<td width="15" bgcolor="#003399" onClick="bcolor='#003399'">
</td>
<td width="15" bgcolor="#0033CC" onClick="bcolor='#0033CC'">
</td>
<td width="15" bgcolor="#0033FF" onClick="bcolor='#0033FF'">
</td>
<td width="15" bgcolor="#006600" onClick="bcolor='#006600'">
</td>
<td width="15" bgcolor="#006633" onClick="bcolor='#006633'">
</td>
<td width="15" bgcolor="#006666" onClick="bcolor='#006666'">
</td>
<td width="15" bgcolor="#006699" onClick="bcolor='#006699'">
</td>
<td width="15" bgcolor="#0066CC" onClick="bcolor='#0066CC'">
</td>
<td width="15" bgcolor="#0066FF" onClick="bcolor='#0066FF'">
</td>
</tr>
<tr height="15">
<td width="15" bgcolor="#009900" onClick="bcolor='#009900'">
</td>
<td width="15" bgcolor="#009933" onClick="bcolor='#009933'">
</td>
<td width="15" bgcolor="#009966" onClick="bcolor='#009966'">
</td>
<td width="15" bgcolor="#009999" onClick="bcolor='#009999'">
</td>
<td width="15" bgcolor="#0099CC" onClick="bcolor='#0099CC'">
</td>
<td width="15" bgcolor="#0099FF" onClick="bcolor='#0099FF'">
</td>
<td width="15" bgcolor="#00CC00" onClick="bcolor='#00CC00'">
</td>
<td width="15" bgcolor="#00CC33" onClick="bcolor='#00CC33'">
</td>
<td width="15" bgcolor="#00CC66" onClick="bcolor='#00CC66'">
</td>
<td width="15" bgcolor="#00CC99" onClick="bcolor='#00CC99'">
</td>
<td width="15" bgcolor="#00CCCC" onClick="bcolor='#00CCCC'">
</td>
<td width="15" bgcolor="#00CCFF" onClick="bcolor='#00CCFF'">
</td>
<td width="15" bgcolor="#00FF00" onClick="bcolor='#00FF00'">
</td>
<td width="15" bgcolor="#00FF33" onClick="bcolor='#00FF33'">
</td>
<td width="15" bgcolor="#00FF66" onClick="bcolor='#00FF66'">
</td>
<td width="15" bgcolor="#00FF99" onClick="bcolor='#00FF99'">
</td>
<td width="15" bgcolor="#00FFCC" onClick="bcolor='#00FFCC'">
</td>
<td width="15" bgcolor="#00FFFF" onClick="bcolor='#00FFFF'">
</td>
</tr>
<tr height="15">
<td width="15" bgcolor="#330000" onClick="bcolor='#330000'">
</td>
<td width="15" bgcolor="#330033" onClick="bcolor='#330033'">
</td>
<td width="15" bgcolor="#330066" onClick="bcolor='#330066'">
</td>
<td width="15" bgcolor="#330099" onClick="bcolor='#330099'">
</td>
<td width="15" bgcolor="#3300CC" onClick="bcolor='#3300CC'">
</td>
<td width="15" bgcolor="#3300FF" onClick="bcolor='#3300FF'">
</td>
<td width="15" bgcolor="#333300" onClick="bcolor='#333300'">
</td>
<td width="15" bgcolor="#333333" onClick="bcolor='#333333'">
</td>
<td width="15" bgcolor="#333366" onClick="bcolor='#333366'">
</td>
<td width="15" bgcolor="#333399" onClick="bcolor='#333399'">
</td>
<td width="15" bgcolor="#3333CC" onClick="bcolor='#3333CC'">
</td>
<td width="15" bgcolor="#3333FF" onClick="bcolor='#3333FF'">
</td>
<td width="15" bgcolor="#336600" onClick="bcolor='#336600'">
</td>
<td width="15" bgcolor="#336633" onClick="bcolor='#336633'">
</td>
<td width="15" bgcolor="#336666" onClick="bcolor='#336666'">
</td>
<td width="15" bgcolor="#336699" onClick="bcolor='#336699'">
</td>
<td width="15" bgcolor="#3366CC" onClick="bcolor='#3366CC'">
</td>
<td width="15" bgcolor="#3366FF" onClick="bcolor='#3366FF'">
</td>
</tr>   
<tr height="15">
<td width="15" bgcolor="#339900" onClick="bcolor='#339900'">
</td>
<td width="15" bgcolor="#339933" onClick="bcolor='#339933'">
</td>
<td width="15" bgcolor="#339966" onClick="bcolor='#339966'">
</td>
<td width="15" bgcolor="#339999" onClick="bcolor='#339999'">
</td>
<td width="15" bgcolor="#3399CC" onClick="bcolor='#3399CC'">
</td>
<td width="15" bgcolor="#3399FF" onClick="bcolor='#3399FF'">
</td>
<td width="15" bgcolor="#33CC00" onClick="bcolor='#33CC00'">
</td>
<td width="15" bgcolor="#33CC33" onClick="bcolor='#33CC33'">
</td>
<td width="15" bgcolor="#33CC66" onClick="bcolor='#33CC66'">
</td>
<td width="15" bgcolor="#33CC99" onClick="bcolor='#33CC99'">
</td>
<td width="15" bgcolor="#33CCCC" onClick="bcolor='#33CCCC'">
</td>
<td width="15" bgcolor="#33CCFF" onClick="bcolor='#33CCFF'">
</td>
<td width="15" bgcolor="#33FF00" onClick="bcolor='#33FF00'">
</td>
<td width="15" bgcolor="#33FF33" onClick="bcolor='#33FF33'">
</td>
<td width="15" bgcolor="#33FF66" onClick="bcolor='#33FF66'">
</td>
<td width="15" bgcolor="#33FF99" onClick="bcolor='#33FF99'">
</td>
<td width="15" bgcolor="#33FFCC" onClick="bcolor='#33FFCC'">
</td>
<td width="15" bgcolor="#33FFFF" onClick="bcolor='#33FFFF'">
</td>
</tr>
<tr height="15">
<td width="15" bgcolor="#660000" onClick="bcolor='#660000'">
</td>
<td width="15" bgcolor="#660033" onClick="bcolor='#660033'">
</td>
<td width="15" bgcolor="#660066" onClick="bcolor='#660066'">
</td>
<td width="15" bgcolor="#660099" onClick="bcolor='#660099'">
</td>
<td width="15" bgcolor="#6600CC" onClick="bcolor='#6600CC'">
</td>
<td width="15" bgcolor="#6600FF" onClick="bcolor='#6600FF'">
</td>
<td width="15" bgcolor="#663300" onClick="bcolor='#663300'">
</td>
<td width="15" bgcolor="#663333" onClick="bcolor='#663333'">
</td>
<td width="15" bgcolor="#663366" onClick="bcolor='#663366'">
</td>
<td width="15" bgcolor="#663399" onClick="bcolor='#663399'">
</td>
<td width="15" bgcolor="#6633CC" onClick="bcolor='#6633CC'">
</td>
<td width="15" bgcolor="#6633FF" onClick="bcolor='#6633FF'">
</td>
<td width="15" bgcolor="#666600" onClick="bcolor='#666600'">
</td>
<td width="15" bgcolor="#666633" onClick="bcolor='#666633'">
</td>
<td width="15" bgcolor="#666666" onClick="bcolor='#666666'">
</td>
<td width="15" bgcolor="#666699" onClick="bcolor='#666699'">
</td>
<td width="15" bgcolor="#6666CC" onClick="bcolor='#6666CC'">
</td>
<td width="15" bgcolor="#6666FF" onClick="bcolor='#6666FF'">
</td>
</tr>
<tr height="15">
<td width="15" bgcolor="#669900" onClick="bcolor='#669900'">
</td>
<td width="15" bgcolor="#669933" onClick="bcolor='#669933'">
</td>
<td width="15" bgcolor="#669966" onClick="bcolor='#669966'">
</td>
<td width="15" bgcolor="#669999" onClick="bcolor='#669999'">
</td>
<td width="15" bgcolor="#6699CC" onClick="bcolor='#6699CC'">
</td>
<td width="15" bgcolor="#6699FF" onClick="bcolor='#6699FF'">
</td>
<td width="15" bgcolor="#66CC00" onClick="bcolor='#66CC00'">
</td>
<td width="15" bgcolor="#66CC33" onClick="bcolor='#66CC33'">
</td>
<td width="15" bgcolor="#66CC66" onClick="bcolor='#66CC66'">
</td>
<td width="15" bgcolor="#66CC99" onClick="bcolor='#66CC99'">
</td>
<td width="15" bgcolor="#66CCCC" onClick="bcolor='#66CCCC'">
</td>
<td width="15" bgcolor="#66CCFF" onClick="bcolor='#66CCFF'">
</td>
<td width="15" bgcolor="#66FF00" onClick="bcolor='#66FF00'">
</td>
<td width="15" bgcolor="#66FF33" onClick="bcolor='#66FF33'">
</td>
<td width="15" bgcolor="#66FF66" onClick="bcolor='#66FF66'">
</td>
<td width="15" bgcolor="#66FF99" onClick="bcolor='#66FF99'">
</td>
<td width="15" bgcolor="#66FFCC" onClick="bcolor='#66FFCC'">
</td>
<td width="15" bgcolor="#66FFFF" onClick="bcolor='#66FFFF'">
</td>
</tr>
<tr height="15">
<td width="15" bgcolor="#990000" onClick="bcolor='#990000'">
</td>
<td width="15" bgcolor="#990033" onClick="bcolor='#990033'">
</td>
<td width="15" bgcolor="#990066" onClick="bcolor='#990066'">
</td>
<td width="15" bgcolor="#990099" onClick="bcolor='#990099'">
</td>
<td width="15" bgcolor="#9900CC" onClick="bcolor='#9900CC'">
</td>
<td width="15" bgcolor="#9900FF" onClick="bcolor='#9900FF'">
</td>
<td width="15" bgcolor="#993300" onClick="bcolor='#993300'">
</td>
<td width="15" bgcolor="#993333" onClick="bcolor='#993333'">
</td>
<td width="15" bgcolor="#993366" onClick="bcolor='#993366'">
</td>
<td width="15" bgcolor="#993399" onClick="bcolor='#993399'">
</td>
<td width="15" bgcolor="#9933CC" onClick="bcolor='#9933CC'">
</td>
<td width="15" bgcolor="#9933FF" onClick="bcolor='#9933FF'">
</td>
<td width="15" bgcolor="#996600" onClick="bcolor='#996600'">
</td>
<td width="15" bgcolor="#996633" onClick="bcolor='#996633'">
</td>
<td width="15" bgcolor="#996666" onClick="bcolor='#996666'">
</td>
<td width="15" bgcolor="#996699" onClick="bcolor='#996699'">
</td>
<td width="15" bgcolor="#9966CC" onClick="bcolor='#9966CC'">
</td>
<td width="15" bgcolor="#9966FF" onClick="bcolor='#9966FF'">
</td>
</tr>
<tr height="15">
<td width="15" bgcolor="#999900" onClick="bcolor='#999900'">
</td>
<td width="15" bgcolor="#999933" onClick="bcolor='#999933'">
</td>
<td width="15" bgcolor="#999966" onClick="bcolor='#999966'">
</td>
<td width="15" bgcolor="#999999" onClick="bcolor='#999999'">
</td>
<td width="15" bgcolor="#9999CC" onClick="bcolor='#9999CC'">
</td>
<td width="15" bgcolor="#9999FF" onClick="bcolor='#9999FF'">
</td>
<td width="15" bgcolor="#99CC00" onClick="bcolor='#99CC00'">
</td>
<td width="15" bgcolor="#99CC33" onClick="bcolor='#99CC33'">
</td>
<td width="15" bgcolor="#99CC66" onClick="bcolor='#99CC66'">
</td>
<td width="15" bgcolor="#99CC99" onClick="bcolor='#99CC99'">
</td>
<td width="15" bgcolor="#99CCCC" onClick="bcolor='#99CCCC'">
</td>
<td width="15" bgcolor="#99CCFF" onClick="bcolor='#99CCFF'">
</td>
<td width="15" bgcolor="#99FF00" onClick="bcolor='#99FF00'">
</td>
<td width="15" bgcolor="#99FF33" onClick="bcolor='#99FF33'">
</td>
<td width="15" bgcolor="#99FF66" onClick="bcolor='#99FF66'">
</td>
<td width="15" bgcolor="#99FF99" onClick="bcolor='#99FF99'">
</td>
<td width="15" bgcolor="#99FFCC" onClick="bcolor='#99FFCC'">
</td>
<td width="15" bgcolor="#99FFFF" onClick="bcolor='#99FFFF'">
</td>
</tr>
<tr height="15">
<td width="15" bgcolor="#CC0000" onClick="bcolor='#CC0000'">
</td>
<td width="15" bgcolor="#CC0033" onClick="bcolor='#CC0033'">
</td>
<td width="15" bgcolor="#CC0066" onClick="bcolor='#CC0066'">
</td>
<td width="15" bgcolor="#CC0099" onClick="bcolor='#CC0099'">
</td>
<td width="15" bgcolor="#CC00CC" onClick="bcolor='#CC00CC'">
</td>
<td width="15" bgcolor="#CC00FF" onClick="bcolor='#CC00FF'">
</td>
<td width="15" bgcolor="#CC3300" onClick="bcolor='#CC3300'">
</td>
<td width="15" bgcolor="#CC3333" onClick="bcolor='#CC3333'">
</td>
<td width="15" bgcolor="#CC3366" onClick="bcolor='#CC3366'">
</td>
<td width="15" bgcolor="#CC3399" onClick="bcolor='#CC3399'">
</td>
<td width="15" bgcolor="#CC33CC" onClick="bcolor='#CC33CC'">
</td>
<td width="15" bgcolor="#CC33FF" onClick="bcolor='#CC33FF'">
</td>
<td width="15" bgcolor="#CC6600" onClick="bcolor='#CC6600'">
</td>
<td width="15" bgcolor="#CC6633" onClick="bcolor='#CC6633'">
</td>
<td width="15" bgcolor="#CC6666" onClick="bcolor='#CC6666'">
</td>
<td width="15" bgcolor="#CC6699" onClick="bcolor='#CC6699'">
</td>
<td width="15" bgcolor="#CC66CC" onClick="bcolor='#CC66CC'">
</td>
<td width="15" bgcolor="#CC66FF" onClick="bcolor='#CC66FF'">
</td>
</tr>
<tr height="15">
<td width="15" bgcolor="#CC9900" onClick="bcolor='#CC9900'">
</td>
<td width="15" bgcolor="#CC9933" onClick="bcolor='#CC9933'">
</td>
<td width="15" bgcolor="#CC9966" onClick="bcolor='#CC9966'">
</td>
<td width="15" bgcolor="#CC9999" onClick="bcolor='#CC9999'">
</td>
<td width="15" bgcolor="#CC99CC" onClick="bcolor='#CC99CC'">
</td>
<td width="15" bgcolor="#CC99FF" onClick="bcolor='#CC99FF'">
</td>
<td width="15" bgcolor="#CCCC00" onClick="bcolor='#CCCC00'">
</td>
<td width="15" bgcolor="#CCCC33" onClick="bcolor='#CCCC33'">
</td>
<td width="15" bgcolor="#CCCC66" onClick="bcolor='#CCCC66'">
</td>
<td width="15" bgcolor="#CCCC99" onClick="bcolor='#CCCC99'">
</td>
<td width="15" bgcolor="#CCCCCC" onClick="bcolor='#CCCCCC'">
</td>
<td width="15" bgcolor="#CCCCFF" onClick="bcolor='#CCCCFF'">
</td>
<td width="15" bgcolor="#CCFF00" onClick="bcolor='#CCFF00'">
</td>
<td width="15" bgcolor="#CCFF33" onClick="bcolor='#CCFF33'">
</td>
<td width="15" bgcolor="#CCFF66" onClick="bcolor='#CCFF66'">
</td>
<td width="15" bgcolor="#CCFF99" onClick="bcolor='#CCFF99'">
</td>
<td width="15" bgcolor="#CCFFCC" onClick="bcolor='#CCFFCC'">
</td>
<td width="15" bgcolor="#CCFFFF" onClick="bcolor='#CCFFFF'">
</td>
</tr>
<tr height="15">
<td width="15" bgcolor="#FF0000" onClick="bcolor='#FF0000'">
</td>
<td width="15" bgcolor="#FF0033" onClick="bcolor='#FF0033'">
</td>
<td width="15" bgcolor="#FF0066" onClick="bcolor='#FF0066'">
</td>
<td width="15" bgcolor="#FF0099" onClick="bcolor='#FF0099'">
</td>
<td width="15" bgcolor="#FF00CC" onClick="bcolor='#FF00CC'">
</td>
<td width="15" bgcolor="#FF00FF" onClick="bcolor='#FF00FF'">
</td>
<td width="15" bgcolor="#FF3300" onClick="bcolor='#FF3300'">
</td>
<td width="15" bgcolor="#FF3333" onClick="bcolor='#FF3333'">
</td>
<td width="15" bgcolor="#FF3366" onClick="bcolor='#FF3366'">
</td>
<td width="15" bgcolor="#FF3399" onClick="bcolor='#FF3399'">
</td>
<td width="15" bgcolor="#FF33CC" onClick="bcolor='#FF33CC'">
</td>
<td width="15" bgcolor="#FF33FF" onClick="bcolor='#FF33FF'">
</td>
<td width="15" bgcolor="#FF6600" onClick="bcolor='#FF6600'">
</td>
<td width="15" bgcolor="#FF6633" onClick="bcolor='#FF6633'">
</td>
<td width="15" bgcolor="#FF6666" onClick="bcolor='#FF6666'">
</td>
<td width="15" bgcolor="#FF6699" onClick="bcolor='#FF6699'">
</td>
<td width="15" bgcolor="#FF66CC" onClick="bcolor='#FF66CC'">
</td>
<td width="15" bgcolor="#FF66FF" onClick="bcolor='#FF66FF'">
</td>
</tr>
<tr height="15">
<td width="15" bgcolor="#FF9900" onClick="bcolor='#FF9900'">
</td>
<td width="15" bgcolor="#FF9933" onClick="bcolor='#FF9933'">
</td>
<td width="15" bgcolor="#FF9966" onClick="bcolor='#FF9966'">
</td>
<td width="15" bgcolor="#FF9999" onClick="bcolor='#FF9999'">
</td>
<td width="15" bgcolor="#FF99CC" onClick="bcolor='#FF99CC'">
</td>
<td width="15" bgcolor="#FF99FF" onClick="bcolor='#FF99FF'">
</td>
<td width="15" bgcolor="#FFCC00" onClick="bcolor='#FFCC00'">
</td>
<td width="15" bgcolor="#FFCC33" onClick="bcolor='#FFCC33'">
</td>
<td width="15" bgcolor="#FFCC66" onClick="bcolor='#FFCC66'">
</td>
<td width="15" bgcolor="#FFCC99" onClick="bcolor='#FFCC99'">
</td>
<td width="15" bgcolor="#FFCCCC" onClick="bcolor='#FFCCCC'">
</td>
<td width="15" bgcolor="#FFCCFF" onClick="bcolor='#FFCCFF'">
</td>
<td width="15" bgcolor="#FFFF00" onClick="bcolor='#FFFF00'">
</td>
<td width="15" bgcolor="#FFFF33" onClick="bcolor='#FFFF33'">
</td>
<td width="15" bgcolor="#FFFF66" onClick="bcolor='#FFFF66'">
</td>
<td width="15" bgcolor="#FFFF99" onClick="bcolor='#FFFF99'">
</td>
<td width="15" bgcolor="#FFFFCC" onClick="bcolor='#FFFFCC'">
</td>
<td width="15" bgcolor="#FFFFFF" onClick="bcolor='#FFFFFF'">
</td>
</tr>
</table>
</td></tr>
<tr><FORM name="colorform">
<td>
<CENTER>Hexadecimal code: <input type="text" size="8" name="chosentcolor"></CENTER>
</td>
<td>
<CENTER>Hexadecimal code: <input type="text" size="8" name="chosenbcolor"></CENTER>
</td>
</FORM></tr>
<tr>
<td colspan="2">
<CENTER><input type="button" name="preview" value="Preview" onClick="ali()"></CENTER>
</td>
</tr>
</table>
</BODY>
</HTML>
 
View user's profile Send private message
junkingusa
PostPosted: Tue Feb 22, 2005 9:20 am Reply with quote

Hi and thanks, that looks like a php color picker and not a popup window? is that true? I had looked at that one, but didn't really like it for my purposes, but if I can't get the the stupid javascript one to work, I will probably resort to it. Wink ... thanks again!

anyone have any suggestions for a pop up window?
 
hitwalker
PostPosted: Tue Feb 22, 2005 9:29 am Reply with quote

no its not php,the popup window is created within java script.
atleast try it..
 
junkingusa
PostPosted: Tue Feb 22, 2005 11:18 am Reply with quote

ah, but it is a color picker, right? ... I will give it a try, but I need more instructions then this as I am a total feeb when it comes to javascripts ... and remember, I am trying to put this inside of a phpnuke module ... Thanks.
 
junkingusa
PostPosted: Thu Feb 24, 2005 11:41 am Reply with quote

Just wanted to post a quck update so no one will spend any time thinking about this problem for me. I did solve my Preview outside of nuke problem and it's now working perfectly. Just need the color picker and I'll be all set.
 
Deseroka
Client


Joined: Apr 15, 2003
Posts: 466
Location: FL

PostPosted: Thu Feb 24, 2005 6:24 pm Reply with quote

Someone posted a color picker in a pop up window for you. You could cut the picker out and add any other info you wanted to the window.
 
View user's profile Send private message
junkingusa
PostPosted: Thu Feb 24, 2005 9:12 pm Reply with quote

I actually did try and figure this out but it isn't going to work for me as I need something that is almost all javascript and less html. Raven has very kindly offered to help me with the tigra one when he has time. I do appreciate hitwalker posting the info and hope it will help someone else. Thanks Deseroka!
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©