SQL
- 4 ответа
- 0 вопросов
3
Вклад в тег
function nextImage(image) {
var imageNames = ["blackbird.jpg", "duck.jpg", "sheep.jpg"];
image.current++;
if (image.current === imageNames.length) image.current = 0;
image.src = "images/" + imageNames[image.current];
}
window.onload = function() {
var img = document.getElementById("main");
img.current = 1;// создаём новое свойство (счётчик)
img.onmousedown = function(event) {
var startX = event.clientX;
img.onmousemove = function(event) {
console.log(startX);
if (startX - event.clientX < -40) {
nextImage(this);
this.onmousemove = null;
}
};
return false; //Позволяет избавиться от стадартного обработчика
}
}
<!DOCTYPE HTML>
<html lang=en>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href=""/>
<script src="type.js"></script>
</head>
<body>
<img id="main" src="images/duck.jpg">
</body>
</html>
INSERT INTO Test.dbo.tb_info (Driverid,CarCode,CarNumber,CarMark)
SELECT
d.Driverid,d.CarCode, ci.CarNumber, ci.CarMark
FROM
Test.dbo.drivers d
INNER JOIN Test.dbo.sprCar_Info ci ON ci.??? = d.???