Я как-то не правильно объявил включение скрипта, видимо, и не могу понять в чём проблема. А вы можете понять? Страница загружается, но мне вылетает две ошибки - одна о недопустимом символе №1, вторая о том что объект BindFunctionality отсутствует. Что я не так подключил?
Код | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Untitled Page</title> <link type="text/css" href="D:\Site\CSS\style.css" rel="stylesheet" /> <script type="text/javascript" src="D:\Site\scripts\CheckAll.js" ></script> </head> <body onload="BindFunctionality();"> <div class="expanded" id="ctl00_LeftArea_FilterPanel_ctl02"> <div class="hLine"> <p> Ranking</p> </div> <div class="hidedCnt"> <div class="insRange"> <p> <input type="checkbox" checked="checked" /><label for>All Rankings</label></p> <p> <input id="ctl00_LeftArea_FilterPanel_ctl03" type="checkbox" name="ctl00$LeftArea$FilterPanel$ctl03"/> <label for="ctl00_LeftArea_FilterPanel_ctl03">Basic</label></p> <p> <input id="ctl00_LeftArea_FilterPanel_ctl04" type="checkbox" name="ctl00$LeftArea$FilterPanel$ctl04"/><label for="ctl00_LeftArea_FilterPanel_ctl04">Excellent</label></p> <p> <input id="ctl00_LeftArea_FilterPanel_ctl05" type="checkbox" name="ctl00$LeftArea$FilterPanel$ctl05" /><label for="ctl00_LeftArea_FilterPanel_ctl05">Premium</label></p> <p> <input id="ctl00_LeftArea_FilterPanel_ctl06" type="checkbox" name="ctl00$LeftArea$FilterPanel$ctl06" /> <label for="ctl00_LeftArea_FilterPanel_ctl06">Undefined</label></p> </div> </div> </div> </body> </html>
|
Код | //Файл CheckAll.js function BindFunctionality() { }
|
|