Language:
JavaScript     Change language:
Pastebin: 70808
Author: skr1
Subject: Untitled
Created: 2007-07-14 11:51:14
Download and save
Toggle line numbers
1This generates typeError: div has no properties. 
2 
3<html> 
4<head> 
 <style type="text/css"
 .result_pollGraph img{ 
     float:left; 
 } 
 /* The <div> tag where the percentage result is shown */ 
 .result_pollGraph div{ 
     float:left; 
     height:16px; 
     background-repeat:repeat-x; 
     color:#FFF; 
     font-size:0.9em; 
     line-height:16px; 
5<script language="JavaScript" type="text/javascript"
6var div = document.getElementById("test"); 
7var p = document.createElement("p"); 
8p.innerHTML = "adfadf"
9 
10try { 
11    div.appendChild(p); 
12} 
 /* Graph div - parent of both the corner images and the div displaying percentage votes */ 
 .result_pollGraph{ 
     height:16px; 
13catch(e) { 
14    alert(e.name+": "+e.message); 
15} 
 </style> 
16</script> 
17 
18</head> 
19 
20<body> 
 <div class="result_pollGraph"
     <img src="graph_left_1.gif"/> 
     <div style="background-image: url('graph_middle_1.gif');">0%</div> 
     <img src="graph_right_1.gif"/></div> 
21<div id="test"></div> 
22</body> 
23</html> 
24 
25 
26 
Thread:
[70808] Untitled by skr1 at 2007-07-14 11:51:14
  [70810] Re: Untitled by skr1 at 2007-07-14 12:14:56 (diff)
    [70811] Re: Untitled by skr1 at 2007-07-14 12:15:50 (diff)
      [70812] Re: Untitled by skr1 at 2007-07-14 12:16:35 (diff)
        [70813] Re: Untitled by skr1 at 2007-07-14 12:18:21 (diff)
  [77674] stzn fpgtos by gmqfurnxk qfbivlegp at 2007-11-20 10:02:18 (diff)
Tip: Click the line numbers to toggle highliting on that line.

Paste followup:

Language:
Author:
Subject:


    Tabstop:     bigger biggest
Note: You can prefix a line with "@@@" to highlight it.