BBCode - 3D Модели с сайта 3dvia.com
Использование BBCode
Замена HTML
Подсказка
Настройки
Пример работы:
Код: Выделить всё
[3d]http://www.3dvia.com/models/{TEXT}[/3d]
Код: Выделить всё
<style type="text/css">
#full-media-viewer {
overflow:hidden;
position:relative;
width:952px;
}
#media-viewer {
margin-top:0.6em;
width:100%;
}
#media-player {
background-color:#FFFFFF;
border-right:10px solid #FFFFFF;
float:left;
height:300px;
width:610px;
}
</style>
<div id="full-media-viewer">
<div id="media-viewer">
<div id="media-player" style="height: 480px;">
<div style="display: none;" id="player-grey"></div>
<div id="player-front" style="display: none;">
<a class="playerSwitcher" href="#"><img width="610" height="480" src="http://www.3dvia.com/3dsearch/Content/{text}_P2.jpg"></a>
</div>
<div style="" id="player-back">
<script src="http://3dlifeplayer.dl.3dvia.com/player/install/DetectBrowser.js"></script><script src="http://3dlifeplayer.dl.3dvia.com/player/install/3DLifePlayer_last_version.js"></script><script src="http://3dlifeplayer.dl.3dvia.com/player/install/3DLifePlayer.js"></script><script language="JavaScript">Generate3DLifePlayerHtmlTag("http://dl.3dvia.com/downloads/exp/Player.vmo",610,480,"Virtools");</script><embed width="610" height="480" keepkeyboard="1" autoplay="1" allowpause="1" allowfullscreen="1" name="Virtools" id="Virtools" pluginspage="http://player.virtools.com/" type="application/x-virtools" src="http://dl.3dvia.com/downloads/exp/Player.vmo">
<noembed>
<p>If you have any problems installing the 3DVIA player, please follow the instructions located here: <a href="http://dl.3dvia.com/products/3dvia-player/">3DVIA player</a>.</p>
</noembed>
<script type="text/javascript">function GetPlayerModelID(){var cmd = "SetAttribute 'PlayerModelIDReceiver' 'PlayerModelID' '{TEXT}.vmo'"; try{document.getElementById("Virtools").DoCommand(cmd);}catch(e){}}</script> </div>
<script type="text/javascript">
$(document).ready(function(){
$(".playerSwitcher").click(showZePlayer);
});
function showZePlayer(e)
{
$('#player-front').fadeOut(function(){
$('#player-back').show();
});
e.preventDefault();
}
</script>
</div>
<ul class="media-tabs">
<li class="selected"><div onclick="Switcher.highlight(this); return Switcher.go('stats-switcher', 'description')">Description</div></li>
<li><div onclick="Switcher.highlight(this); return Switcher.go('stats-switcher', 'stats')">Stats</div></li>
<li><div onclick="Switcher.highlight(this); return Switcher.go('stats-switcher', 'embed')">Embed</div></li>
<li><div onclick="Switcher.highlight(this); return Switcher.go('stats-switcher', 'gallery')" id="galleryTab">Gallery </div></li>
</ul>
<div id="media-info" style="height: 454px;">
<div id="info-wrapper">
<div id="stats-switcher">
<div id="description">
<div class="description inplaceedit_wrapper">
</div>
<script type="text/javascript">
$(document).ready(function(){
if(!$('#media-banner').length)
{
$('#media_description_textilize').height((parseInt($('#media_description_textilize').height()) + 80));
$('#stats').height((parseInt($('#stats').height()) + 80));
$('#embed').height((parseInt($('#embed').height()) + 80));
$('#gallery').height((parseInt($('#gallery').height()) + 80));
}
$('#media-info').height(parseInt($('#player-grey').height()) - 26);
$('#media-player').height($('#player-grey').height());
//CustomScrollBar.create('media_description_textilize', {axis: 'vertical', fade: 'bottom'});
//CustomScrollBar.create('stats', {axis: 'vertical'});
});
</script>
</div>
<div style="display: none;" id="stats">
<p><strong>Original file size:</strong><span>27.8 MB</span></p>
<p><strong>Original file format:</strong><span><a href="/search/models/formats/obj" title="Search for other models with the obj extension">obj</a></span></p>
<p><strong>Surfaces:</strong><span></span></p>
<p><strong>Triangles:</strong><span></span></p>
<p><strong>Vertices:</strong><span></span></p>
<p><strong>Textures:</strong><span></span></p>
<p><strong>Created with:</strong><span><a href="/search/models/software/" title="Search for other models made with "></a></span></p>
<p><strong>Views:</strong><span></span></p>
<p><strong>Downloads:</strong><span></span></p>
<p><strong>Comments:</strong><span><a href="#media-comments" title="See comments on this page"></a></span></p>
<p><strong>Ratings:</strong><span><a href="#rating" title="See rating on this page"></a></span></p>
<p class="center">Not usable in 3DVIA Shape</p>
<div style="display: none;" id="shape-usable"></div>
</div>
<div style="display: none;" id="embed">
<p>Copy/paste this code into your blog:</p>
<textarea onclick="javascript:this.focus();this.select();" id="embed-code"> <iframe width="410" height="308" border="0" topmargin="0" leftmargin="0" marginwidth="0" marginheight="0" SCROLLING="no" src="http://www.3dvia.com/iframe_view_media.php?media_id={TEXT}&viewer=0&width=410&height=308"></iframe>
</textarea>
</div>
<div style="display: none; padding-right: 14px;" id="gallery">
<div id="galleryLoading">
<img src="/0-img/loading.gif"> Please wait...
</div>
<div style="display: none;" id="exitGallery">
<a class="backToThumbnail" href="#">Exit Gallery</a>
</div>
<ul id="gallery-ul">
<li>
<a class="thumbnail" href="http://www.3dvia.com/3dsearch/Content/{TEXT}_P2.jpg"><img title="View larger image" alt="Gallery image" _media_id="{TEXT}" src="http://www.3dvia.com/3dsearch/Content/{TEXT}_P2.jpg"></a>
</li> </ul>
<style>
#gallery-ul img {
background-color:#fff;
padding:2px;
border:1px solid #ccc;
-moz-border-radius:4px;
-webkit-border-radius:4px;
}
#gallery-ul a.active img {
outline:1px solid #000;
}
</style>
<script type="text/javascript">
$(document).ready(function() {
$('#gallery-ul a.gallery').click(function(e)
{
$('#exitGallery').show();
setThumbnail($(this).find("img:first").attr("_media_id"), false);
e.preventDefault();
});
$('.backToThumbnail, #gallery-ul a.thumbnail').click(function(e)
{
$('#exitGallery').hide();
setThumbnail(media_id, true);
e.preventDefault();
});
});
function setThumbnail(media_id, is_default)
{
var ext;
if(is_default)
{
ext = '_P2';
$('.playerSwitcher').unbind().click(function(){try{showZePlayer();}catch(e){};});
$('.playerSwitcher img:first').removeAttr("_media_id");
}
else
{
ext = '_L2';
$('.playerSwitcher img:first').attr("_media_id", media_id);
$('.playerSwitcher').unbind().click(showNextThumbnail);
}
if($('#player-back').length)
{
$('#player-back').hide();
}
$('#player-front').show();
$('.playerSwitcher img:first').attr("src", "/3dsearch/Content/" + media_id + ext + ".jpg?DefaultImage=&Pass=");
}
function showNextThumbnail(e)
{
var id = $(this).find("img:first").attr("_media_id");
var next_id = $('#gallery-ul li img[_media_id="' + id + '"]').closest('li').next().find('img:first').attr('_media_id');
if(!next_id)
{
next_id = $('#gallery-ul li:first').find('img:first').attr('_media_id');
}
setThumbnail(next_id, false);
e.preventDefault();
}
</script>
</div>
</div>
</div>
</div>
</div>
<br class="clear">
</div>
Код: Выделить всё
Скопировать адрес в адресной строке до цифр - [3d]Адрес[/3d]
Не выкладывать больше 1 модели на 1 страницуПоказывать на странице ответа - на усмотрение админа
Пример работы:
Код: Выделить всё
[3d]http://www.3dvia.com/models/E8220EDEF0C2D4E6[/3d]
Поделитесь ссылкой.
HTML код
BBCode
Link
Кто сейчас на конференции
Сейчас этот форум просматривают: нет зарегистрированных пользователей и 1 гость