Hi
How can I make the anchor link once I do onclick?
[HTML]
<td width="<?php echo ($cellwidth); ?>" height="17" bgcolor="#00ff0 0" onMouseOver="th is.style.backgr ound ='red'"
onMouseOut="thi s.style.backgro und='#00ff00'" onClick="window .frames.eventsD isplay.location = 'MB2eventlistTi meline.php?movi eID=<?php echo $movie->movieID;?>&eve nts=<?php echo $timeline->eventCategory; ?>'; parent.playClip (<?php echo $timeline->eventID?>, <?php echo $shotStartTime? >, <?php echo $shotStopTime?> );parent.notesF orm.eventID.val ue=<?php echo $timeline->eventID?>;pare nt.resetNotes() ;"></td>
[/HTML]
Below is link file MB2eventlistTim eline.php. I want it to display the result at the beginning list without using the scrolbar. Currently it list the whole file in the iframe. I want it to go to specific point in the iframe display according to the variable it sent or if possible highlighted current location
[HTML]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Browse-Search-Note Movies</title>
<link rel="stylesheet " href="moviebrow ser2.css" type="text/css" title="Default" media="screen"/>
</head>
<body bgcolor="#72625 7" background="ifr ame-background.jpg" leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0 " marginwidth="0" marginheight="0 " style="width:26 0px;overflow:hi dden;">
<table width="270" border="0" cellspacing="0" cellpadding="0" >
<?php
function insertEventTabl eRow($movieID, $eventID, $keyFrame, $startTime, $stopTime, $eventInformati on) {
?>
<tr bgcolor="#72625 7" onMouseOver="th is.bgColor='#53 4741';" onMouseOut="thi s.bgColor='#726 257';" style="cursor: pointer;">
<td width="65" valign="top" width="65" height="44" border="1" vspace="2">
<img src="<?php echo $keyFrame;?>"
onclick="parent .playClip(<?php echo $eventID?>, <?php echo $startTime;?>, <?php echo $stopTime;?>);p arent.notesForm .eventID.value= <?php echo $eventID?>;pare nt.resetNotes() ;">
</td>
<td width="195" class="eventEnt ryText" onclick="parent .playClip(<?php echo $eventID?>, <?php echo $startTime;?>, <?php echo $stopTime;?>);p arent.notesForm .eventID.value= <?php echo $eventID?>;pare nt.resetNotes() ;">
<?php echo $eventInformati on?>
</td>
</tr>
<tr>
<td colspan="2" height="5">
<img src="iframe-borderline.jpg" width="230" height="5"/>
</td>
</tr>
<?php
}
$events = (isset($_GET['events']))?$_GET['events']:"All"; //just call one time only..no need to defin on top of the line like $movieID
switch($events) {
case "All":
break;
case "Dialogue":
case "Montage":
case "Exciting":
$db->query("INSER T INTO LogsTable (page, action, userID, type, date) VALUES ('timeline', '$events categories', " . $_SESSION['user']->userID . ", '', getDate())");
$allEvents = $db->get_results("S ELECT * FROM EventsShotsStar tAndStopFrames where movieID='$movie ID' and eventCategory = '$events' order by eventNo");
foreach($allEve nts as $event)
{
$shotStartTime = $event->shotStartFra me/29.97;
if(is_int($even t->shotStartFrame )) {
$shotStopTime = $event->shotStopFram e/29.97;
}
else {
$shotStopTime = 0;
}
$numberOfShotsI nEvent = $event->endShot - $event->startShot;
$eventInformati on = "<b>$events " . $event->eventNo . "</b><br />($numberOfShot sInEvent shots)<br />";
$eventInformati on .= '<em style="font-size:smaller;"> ' . sec2hms($shotSt artTime) . " - " . sec2hms($shotSt opTime).'</em>';
//insertEventTabl eRow($movieID, $event->eventID, $event->imgSelectedKey frm, $shotStartTime, $shotStopTime, $eventInformati on);
insertEventTabl eRow($_GET['movieID'], $event->eventID, $event->imgSelectedKey frm, $shotStartTime, $shotStopTime, $eventInformati on);
}
break;
default:
die("Invalid Event!");
break;
}
?>
</table>
</body>
</html>
[/HTML]
How can I make the anchor link once I do onclick?
[HTML]
<td width="<?php echo ($cellwidth); ?>" height="17" bgcolor="#00ff0 0" onMouseOver="th is.style.backgr ound ='red'"
onMouseOut="thi s.style.backgro und='#00ff00'" onClick="window .frames.eventsD isplay.location = 'MB2eventlistTi meline.php?movi eID=<?php echo $movie->movieID;?>&eve nts=<?php echo $timeline->eventCategory; ?>'; parent.playClip (<?php echo $timeline->eventID?>, <?php echo $shotStartTime? >, <?php echo $shotStopTime?> );parent.notesF orm.eventID.val ue=<?php echo $timeline->eventID?>;pare nt.resetNotes() ;"></td>
[/HTML]
Below is link file MB2eventlistTim eline.php. I want it to display the result at the beginning list without using the scrolbar. Currently it list the whole file in the iframe. I want it to go to specific point in the iframe display according to the variable it sent or if possible highlighted current location
[HTML]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Browse-Search-Note Movies</title>
<link rel="stylesheet " href="moviebrow ser2.css" type="text/css" title="Default" media="screen"/>
</head>
<body bgcolor="#72625 7" background="ifr ame-background.jpg" leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0 " marginwidth="0" marginheight="0 " style="width:26 0px;overflow:hi dden;">
<table width="270" border="0" cellspacing="0" cellpadding="0" >
<?php
function insertEventTabl eRow($movieID, $eventID, $keyFrame, $startTime, $stopTime, $eventInformati on) {
?>
<tr bgcolor="#72625 7" onMouseOver="th is.bgColor='#53 4741';" onMouseOut="thi s.bgColor='#726 257';" style="cursor: pointer;">
<td width="65" valign="top" width="65" height="44" border="1" vspace="2">
<img src="<?php echo $keyFrame;?>"
onclick="parent .playClip(<?php echo $eventID?>, <?php echo $startTime;?>, <?php echo $stopTime;?>);p arent.notesForm .eventID.value= <?php echo $eventID?>;pare nt.resetNotes() ;">
</td>
<td width="195" class="eventEnt ryText" onclick="parent .playClip(<?php echo $eventID?>, <?php echo $startTime;?>, <?php echo $stopTime;?>);p arent.notesForm .eventID.value= <?php echo $eventID?>;pare nt.resetNotes() ;">
<?php echo $eventInformati on?>
</td>
</tr>
<tr>
<td colspan="2" height="5">
<img src="iframe-borderline.jpg" width="230" height="5"/>
</td>
</tr>
<?php
}
$events = (isset($_GET['events']))?$_GET['events']:"All"; //just call one time only..no need to defin on top of the line like $movieID
switch($events) {
case "All":
break;
case "Dialogue":
case "Montage":
case "Exciting":
$db->query("INSER T INTO LogsTable (page, action, userID, type, date) VALUES ('timeline', '$events categories', " . $_SESSION['user']->userID . ", '', getDate())");
$allEvents = $db->get_results("S ELECT * FROM EventsShotsStar tAndStopFrames where movieID='$movie ID' and eventCategory = '$events' order by eventNo");
foreach($allEve nts as $event)
{
$shotStartTime = $event->shotStartFra me/29.97;
if(is_int($even t->shotStartFrame )) {
$shotStopTime = $event->shotStopFram e/29.97;
}
else {
$shotStopTime = 0;
}
$numberOfShotsI nEvent = $event->endShot - $event->startShot;
$eventInformati on = "<b>$events " . $event->eventNo . "</b><br />($numberOfShot sInEvent shots)<br />";
$eventInformati on .= '<em style="font-size:smaller;"> ' . sec2hms($shotSt artTime) . " - " . sec2hms($shotSt opTime).'</em>';
//insertEventTabl eRow($movieID, $event->eventID, $event->imgSelectedKey frm, $shotStartTime, $shotStopTime, $eventInformati on);
insertEventTabl eRow($_GET['movieID'], $event->eventID, $event->imgSelectedKey frm, $shotStartTime, $shotStopTime, $eventInformati on);
}
break;
default:
die("Invalid Event!");
break;
}
?>
</table>
</body>
</html>
[/HTML]
Comment