Jump to content

Не читает видео в папках


Maiden7
 Share

Recommended Posts

Добрый день, есть site.ru

У меня видео отображается в iframe.

в корне лежит index.html в нем прописан путь к видео, и оно читается, все хорошо.

Но как только я создаю папку, любую, и кладу все туда, он перестает видеть файлы, права выставлены.

Вот содержимое индекса

<!DOCTYPE HTML>
<html>
<head>
<title>AJ Applegate</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<link rel="stylesheet" type="text/css" href="css/main.css">
<script type="text/javascript">
var selectedtablink=""
var tcischecked=false
function handlelink(aobject){
selectedtablink=aobject.href
tcischecked=(document.tabcontrol && document.tabcontrol.tabcheck.checked)? true : false
if (document.getElementById && !tcischecked){
var tabobj=document.getElementById("tablist")
var tabobjlinks=tabobj.getElementsByTagName("A")
for (i=0; i<tabobjlinks.length; i++)
tabobjlinks[i].className=""
aobject.className="older"
document.getElementById("tabiframe").src=selectedtablink
return false
}
else
return true
}
function handleview(){
tcischecked=document.tabcontrol.tabcheck.checked
if (document.getElementById && tcischecked){
if (selectedtablink!="")
window.location=selectedtablink
}}
</script>
</head>
<style>

a.button9 {
  position: relative;
  color: white;
  font-weight: bold;
  text-decoration: none;
  text-shadow: -1px -1px #000;
  user-select: none;
  padding: .8em 2em;
  outline: none;
  background-color: #000;
  background-image: linear-gradient(45deg, rgba(255,255,255,.0) 30%, rgba(255,255,255,.8), rgba(255,255,255,.0) 70%), radial-gradient(190% 100% at 50% 0%, rgba(255,255,255,.7) 0%, rgba(255,255,255,.5) 50%, rgba(0,0,0,0) 50%);
  background-repeat: no-repeat;
  background-size: 200% 100%, auto;
  background-position: 200% 0, 0 0;
  box-shadow: rgba(0,0,0,.3) 0 2px 5px;
} 
a.button9:active {
  top: 1px;
  box-shadow: none;
}
a.button9:hover {
  transition: .5s linear;
  background-position: -200% 0, 0 0;
}
body {
    background-image: url(img/bg.png); /* Путь к фоновому изображению */
    background-color: #FFC0CB; /* Цвет фона */
	background-repeat: no-repeat;
	background-size: 100%;
   }
</style>
<center>
<ul id="tablist">
<p><a class="button9" href="1.html" target="MyFrame1">1</a>
<a class="button9" href="2.html" target="MyFrame1">2</a>
<a class="button9" href="3.html" target="MyFrame1">3</a>
<a class="button9" href="4.html" target="MyFrame1">4</a>
<a class="button9" href="5.html" target="MyFrame1">5</a>
<a class="button9" href="6.html" target="MyFrame1">6</a>
<a class="button9" href="7.html" target="MyFrame1">7</a>
<a class="button9" href="8.html" target="MyFrame1">8</a>
<a class="button9" href="9.html" target="MyFrame1">9</a>
<a class="button9" href="10.html" target="MyFrame1">10</a></p>
</center>



</ul>
<center><iframe name="MyFrame1" src="10.html" width="1420px" height="820px"></iframe></center>

</body>
</html>

Куда бы я это все не положил, оно должно читаться. Но читается и воспроизводится только в корне сайта. В чем разница? 

Даже если полный путь пропишу к файлам, все равно ноль=(

Читает только файл 10.html и видео норм воспроизводит

Edited by Maiden7
Link to comment
Share on other sites

судя по адресам указанным в href у вас все html должны находиться в той же папке, что и index.html
по поводу почему у вас не грузятся видео из другой папки: я не знаю что у вас в 1.html .... 10.html, но подозреваю, что видео должно лежать в той же папке что и эти html

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Обсуждения

    • Актуальные контакты: Telegram: @Nikker_web E-Mail:   tarasevich.email@gmail.com Портфолио https://www.behance.net/d4d4186e Разрабатываю дизайн групп в соц сетях, сайтов, приложений, другой дизайн под заказ    
    • Актуальные контакты: Telegram: @Nikker_web E-Mail:   tarasevich.email@gmail.com   Разрабатываю дизайн групп в соц сетях, сайтов, приложений, другой дизайн под заказ   Портфолио https://www.behance.net/d4d4186e
    • Доброго всем времени суток. Прошу помощи. Научите принципу изменения футера. Движок Xenforo. Версия 2.2.10. Стиль дефолтный. Что именно нужно в итоге на фото примере. Мой шаблон app.footer less имеет следующее значение.  .p-footer { .xf-publicFooter(); a { .xf-publicFooterLink(); } } .p-footer-inner { .m-pageWidth(); .m-pageInset(); padding-top: @xf-paddingMedium; padding-bottom: @xf-paddingLarge; } .p-footer-row { .m-clearFix(); margin-bottom: -@xf-paddingLarge; } .p-footer-row-main { float: left; margin-bottom: @xf-paddingLarge; } .p-footer-row-opposite { float: right; margin-bottom: @xf-paddingLarge; } .p-footer-linkList { .m-listPlain(); .m-clearFix(); > li { float: left; margin-right: .5em; &:last-child { margin-right: 0; } a { padding: 2px 4px; border-radius: @xf-borderRadiusSmall; &:hover { text-decoration: none; background-color: fade(@xf-publicFooterLink--color, 10%); } } } } .p-footer-rssLink { > span { position: relative; top: -1px; display: inline-block; width: 1.44em; height: 1.44em; line-height: 1.44em; text-align: center; font-size: .8em; background-color: #4682B4; border-radius: 2px; } .fa-rss { color: white; } } .p-footer-copyright { margin-top: @xf-elementSpacer; text-align: center; font-size: @xf-fontSizeSmallest; } .p-footer-debug { margin-top: @xf-paddingLarge; text-align: right; font-size: @xf-fontSizeSmallest; .pairs > dt { color: inherit; } } @media (max-width: @xf-responsiveMedium) { .p-footer-row-main, .p-footer-row-opposite { float: none; } .p-footer-copyright { text-align: left; padding: 0 4px; // aligns with other links } }  
    • Нужны сайты с примерами верстки, типа https://css-tricks.com/. Типовые приемы и нестандартные на все случаи жизни. Накидайте ссылок.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy