littleken
11-22-2003, 01:57 PM
I have PHP code.
view_comment.php
<script>
function msgposit(){
message.style.posLeft = event.x + 20 + document.body.scrollLeft
message.style.posTop = event.y - 20 + document.body.scrollTop
}
function msgset(str,str2){
var text
text ='<table border="0" cellpadding="6" cellspacing="0" bgcolor="#FDFFF2" style="font-size:9pt; border-width:1; border-color:black; border-style:solid;">'
text += '<tr><td><p><b>' + str + '<br><br></b>' + str2 + '</td></tr></table>'
message.innerHTML=text
}
function msghide(){
message.innerHTML=''
}
</script>
<?
if ($c_data[ismember]) {
if(!$connect) dbconn();
$tempx = mysql_fetch_array(mysql_query("select * from zetyx_member_table where no=$c_data[ismember]"));
$picture=$tempx[picture];
$tempx[comment] = stripslashes($tempx[comment]);
}
?>
<table width="95%" border="0" cellspacing="1" cellpadding="1">
<tr>
<td><? if($picture) echo"<img src='http://winning11.net/zeroboard/$picture' width='70' height='57' onmousemove='msgposit()' onmouseout='msghide()' onmouseover=msgset('Dog','cat') style='border-color:rgb(51,51,51);');'>"; ?></td> </tr>
like this but I can't use it.
That is just comment(include photo)
I just wanna to show mouse over image there
but there are <? if ?> statement , so I can't make that
Very poor Eng~ :'(
view_comment.php
<script>
function msgposit(){
message.style.posLeft = event.x + 20 + document.body.scrollLeft
message.style.posTop = event.y - 20 + document.body.scrollTop
}
function msgset(str,str2){
var text
text ='<table border="0" cellpadding="6" cellspacing="0" bgcolor="#FDFFF2" style="font-size:9pt; border-width:1; border-color:black; border-style:solid;">'
text += '<tr><td><p><b>' + str + '<br><br></b>' + str2 + '</td></tr></table>'
message.innerHTML=text
}
function msghide(){
message.innerHTML=''
}
</script>
<?
if ($c_data[ismember]) {
if(!$connect) dbconn();
$tempx = mysql_fetch_array(mysql_query("select * from zetyx_member_table where no=$c_data[ismember]"));
$picture=$tempx[picture];
$tempx[comment] = stripslashes($tempx[comment]);
}
?>
<table width="95%" border="0" cellspacing="1" cellpadding="1">
<tr>
<td><? if($picture) echo"<img src='http://winning11.net/zeroboard/$picture' width='70' height='57' onmousemove='msgposit()' onmouseout='msghide()' onmouseover=msgset('Dog','cat') style='border-color:rgb(51,51,51);');'>"; ?></td> </tr>
like this but I can't use it.
That is just comment(include photo)
I just wanna to show mouse over image there
but there are <? if ?> statement , so I can't make that
Very poor Eng~ :'(