- The border styles in the list are: solid, dashed and dotted.
- By clicking on “Create the styled paragraph“, you should insert the text ( in the text area) in a paragraph below with the selected style properties.
- By clicking on search (after putting a word to look for it), the paragraph that appeared below should highlight every matched word in it. If it is not exist it should display below that the word does not exist.
- By clicking on “Clear Search” you should remove all the highlights that appear on it from the last searching process.
- You should display the web page in a very similar way to the above suggestion.
كيف ممكن اعدل على كود اني ابحث عن كلمة موجوده ب text area وكيف ممكن اعمل شكل كما في صوره
<!DOCTYPE html><html><head><style>
aside {float: left;
padding:20px;
width:70%;
height:300px}
section:after {
content:"";
display: table;
clear: both;}
footer {
padding:10px;
text-align: center;
color: white;}</style></head><body><header><textareaid="TextEditor"rows="30"cols="50"placeholder="Copy and Paste a text here ..."></textarea></header><section><h1>Styling a paragraph</h1><labelfor="textcolor">Text Color:</label><inputtype="color"id="textcolor"value="#ff0000"><br><labelfor="backgroundcolor">Background Color:</label><inputtype="color"id="backgroundcolor"value="#ff0000"><br><inputtype="radio"value="1"checked="checked">With Border<br><inputtype="radio"value="0">Without Border<br><labelfor="bordercolor">Border Color:</label><inputtype="color"id="bordercolor"value="#ff0000"><br><inputtype="button"value="Create the styled button"><aside><h1>Searching for a text</h1></aside></section><footer><divid="Results"></div></footer><script>
document.querySelector('input[type = button]').addEventListener("click",function(){
document.getElementById("Results").innerHTML = document.getElementById("TextEditor").value;if(document.querySelector('input[type = radio]:checked').value ===1){
document.getElementById("Results").style.border ="thick solid "+document.getElementById("bordercolor").value;}
document.getElementById("Results").style.color = document.getElementById("textcolor").value;
document.getElementById("Results").style.backgroundColor = document.getElementById("backgroundcolor").value;});</script></body></html>
السؤال
Mari Carmen
- The border styles in the list are: solid, dashed and dotted.
- By clicking on “Create the styled paragraph“, you should insert the text ( in the text area) in a paragraph below with the selected style properties.
- By clicking on search (after putting a word to look for it), the paragraph that appeared below should highlight every matched word in it. If it is not exist it should display below that the word does not exist.
- By clicking on “Clear Search” you should remove all the highlights that appear on it from the last searching process.
- You should display the web page in a very similar way to the above suggestion.
كيف ممكن اعدل على كود اني ابحث عن كلمة موجوده ب text area وكيف ممكن اعمل شكل كما في صوره
3 أجوبة على هذا السؤال
Recommended Posts
انضم إلى النقاش
يمكنك أن تنشر الآن وتسجل لاحقًا. إذا كان لديك حساب، فسجل الدخول الآن لتنشر باسم حسابك.