[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bugs-dist
Subject: Bug#30104: konqueror crashes when selecting javascript time&date text then click in HTML page
From: andyW () uwink ! com ! cn
Date: 2001-08-01 3:42:32
[Download RAW message or body]
Package: konqueror
Version: KDE 2.1.1
Severity: normal
Installed from: RedHat RPMs
Compiler: gcc-2.86-81
OS: Linux
OS/Compiler notes: Not Specified
I wrote a clock using javascript in HTML page opened in konqueror web browser, it \
works. But, if I drag the mouse to select the text of the clock, then click any \
picture in the HTML page, konqueror crashed and gives the message: "The application \
konqueror crashed and caused the signal 11 (SIGSEGV)" .
The HTML page source code is here, no images, but the clock works. You can open it in \
konqueror web browser, select clock text then click any image(all with links) in the \
page. the bug occured.
Thank you for your work. I love konqueror.
<html>
<head>
<title>cn main menu</title>
<meta http-equiv="Content-Type" content="text/html">
<script language="javaScript">
function clockon(){
now= new Date();
hours=now.getHours();
minutes=now.getMinutes();
seconds=now.getSeconds();
timeStr= hours+((minutes \
<10)?":0":":")+minutes+((seconds<10)?":0":":")+seconds;
dateStr= (now.getYear()+1900)+"-"+(now.getMonth()+1)+"-"+now.getDate();
dayStr= now.getDay();
switch(dayStr){
case 1:
dayStr="Monday";
break;
case 2:
dayStr="Tuesday";
break;
case 3:
dayStr="Wednesday";
break;
case 4:
dayStr="Thursday";
break;
case 5:
dayStr="Friday";
break;
case 6:
dayStr="Saturday";
break;
default:
dayStr="Sunday";
break;
}
time="<center>"+"<b>"+dateStr+"<br>"+timeStr+"<br>"+dayStr+"</b>"+"</center>";
if(document.all){
bgclock.innerHTML= time;
}
if(document.layers){
document.bgclock.document.write(time);
document.close();
}
setTimeout("clockon()",1000);
}
</script>
</head>
<body bgcolor="#000000" text="#FFFFFF" onLoad="clockon()"> <table width="800" \
height="500" border="0" bgcolor="#000000" cellspacing="0" cellpadding="0" \
background="images/main_bg.gif"> <tr>
<td valign="middle" width="200" height="160">
<div align="center">
<form action="communication.html"><input type="image" \
src="images/main_communication.gif" width="200" height="122" name="Image1"> </form> \
</div> </td>
<td valign="middle" width="200" >
<div align="center">
<form action="search.html"><input type="image" src="images/main_search.gif" \
width="200" height="122" name="Image2"></form></div> </td>
<td valign="middle" width="200">
<div align="center">
<form action="educationjob.html"><input type="image" \
src="images/main_educationjob.gif" width="200" height="122" \
name="Image3"></form></div> </tr>
<tr>
<td valign="middle" height="170">
<div align="center" >
<form action="entertainment.html"><input type="image" \
src="images/main_entertainment.gif" width="200" height="122" \
name="Image4"></form></div> </td> <td valign="middle" width="200">
<div align="center">
<form action="enter_game.html"><input type="image" src="images/main_tour.gif" \
width="200" height="122" name="Image5"></form></div> </td>
<td valign="middle" >
<div align="center">
<form action="life.html"><input type="image" src="images/main_life.gif" width="200" \
height="122" name="Image6"></form></div> </td> </tr>
<tr>
<td valign="middle" height="160"> <div align="center">
<form action="news.html"><input type="image" src="images/main_news.gif" width="200" \
height="122" name="Image7"></form></div> </td>
<td valign="middle" >
<div align="center">
<form action="financestock.html"><input type="image" \
src="images/main_financestock.gif" width="200" height="122" \
name="Image8"></form></div> </td>
<td valign="middle" >
<div align="center">
<form action="ecommerce.html"><input type="image" src="images/main_ecommerce.gif" \
width="200" height="122" name="Image"></div> </td> </tr>
</table>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="middle"><img src="images/main_bar.gif" width="620" height="70"></td>
<td valign="top"><img src="images/main_home.gif" width="87" height="70" \
name="Image01"></td> <td valign="top"><form action="../adv.swf"><input type="image" \
src="images/main_exit.gif" width="93" height="70" name="Image02"></form></td> </tr> \
</table> <div id="bgclock" style="position:absolute; width:100px; height:70px; \
z-index:1; left:100px; top:518px; color:#ccffff; font-size:120%;"></div> <div \
style="position:absolute; width:200px; height:60px; z-index:1; left:330px; \
top:510px;"><img src="images/main_menu.gif"></div> </body>
</html>
(Submitted via bugs.kde.org)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic