따라다니는 스크롤 문의좀 드립니다!! 채택완료
https://sir.kr/g5_tip/2660?sfl=wr_subject%7C%7Cwr_content&stx=%EB%B0%B0%EB%84%88이스킨사용중입니다
</strong></p>
<p><!--</p>
<p>ver1.0 150421 @_untitle_d</p>
<p><a href="http://untitled.untitle311apyxry1w48.com/5yj67ft" target="_blank" rel="noopener noreferrer">http://untitled.untitle311apyxry1w48.com/5yj67ft</a></p>
<p>--></p>
<p> </p>
<p><?php</p>
<p> </p>
<p>$tmpWidth = '150';</p>
<p>$tmpMarginBottom = '5';</p>
<p>$tmpBorder = '0';</p>
<p>$arrL = array(</p>
<p> array('#', '/img/mainimmg4.png', 'untitled' ,'_blank'),</p>
<p> array('<a href="http://untitled.untitle311apyxry1w48.com/'," target="_blank" rel="noopener noreferrer">http://untitled.untitle311apyxry1w48.com/',</a> '/img/mainimmg4.png', 'untitled', '_blank'),</p>
<p> array('<a href="http://untitled.untitle311apyxry1w48.com/'," target="_blank" rel="noopener noreferrer">http://untitled.untitle311apyxry1w48.com/',</a> '/img/mainimmg2.png', 'untitled', '_blank'),</p>
<p> array('<a href="http://untitled.untitle311apyxry1w48.com/'," target="_blank" rel="noopener noreferrer">http://untitled.untitle311apyxry1w48.com/',</a> '/img/mainimmg3.png', 'untitled', '_blank')</p>
<p>);</p>
<p>$arrR = array(</p>
<p> array('<a href="http://untitled.untitle311apyxry1w48.com/'," target="_blank" rel="noopener noreferrer">http://untitled.untitle311apyxry1w48.com/',</a> '/img/mainimmg1.png', 'untitled', '_blank'),</p>
<p> array('<a href="http://untitled.untitle311apyxry1w48.com/'," target="_blank" rel="noopener noreferrer">http://untitled.untitle311apyxry1w48.com/',</a> '/img/mainimmg1.png', 'untitled' ,'_blank'),</p>
<p> array('<a href="http://untitled.untitle311apyxry1w48.com/'," target="_blank" rel="noopener noreferrer">http://untitled.untitle311apyxry1w48.com/',</a> '/img/mainimmg1.png', 'untitled', '_blank'),</p>
<p> array('<a href="http://untitled.untitle311apyxry1w48.com/'," target="_blank" rel="noopener noreferrer">http://untitled.untitle311apyxry1w48.com/',</a> '/img/mainimmg1.png', 'untitled', '_blank')</p>
<p>);</p>
<p>?></p>
<p> </p>
<p><script type="text/javascript" src="<?php echo G5_JS_URL ?>/follower.js"></script></p>
<p><script type="text/javascript"></p>
<p>//<![CDATA[</p>
<p>$(document).ready(function() {</p>
<p> $('#floatR').scrollFollower({</p>
<p> pageAlign:'center',</p>
<p> pageWidth:1220, //컨텐츠 블럭의 폭(필수값)</p>
<p> type:'right',</p>
<p> topMargin:200, //페이지 최상단과의 거리</p>
<p> minTop:10,</p>
<p> margin:5,</p>
<p> speed:0,</p>
<p> easing:'swing',</p>
<p> zindex:0</p>
<p> });</p>
<p> $('#floatL').scrollFollower({</p>
<p> pageAlign:'center',</p>
<p> pageWidth:1220,</p>
<p> type:'left',</p>
<p> topMargin:200,</p>
<p> minTop:10,</p>
<p> margin:5,</p>
<p> speed:0,</p>
<p> easing:'linear',</p>
<p> zindex:0</p>
<p> });</p>
<p>});</p>
<p>//]]></p>
<p></script></p>
<p> </p>
<p><div id="floatL"></p>
<p><?php foreach($arrL as $v){ ?></p>
<p> <div style="margin-bottom:<?=$tmpMarginBottom?>px"></p>
<p> <a href="<?=$v[0]?>" target="<?=$v[3]?>"><img src="<?=$v[1]?>" width="<?=$tmpWidth?>" border="<?=$tmpBorder?>" alt="<?=$v[2]?>"></a></p>
<p> </div></p>
<p> <?php } ?></p>
<p></div></p>
<p>
</p>
<p><div id="floatR"></p>
<p><?php foreach($arrR as $v){ ?></p>
<p> <div style="margin-bottom:<?=$tmpMarginBottom?>px"></p>
<p> <a href="<?=$v[0]?>" target="<?=$v[3]?>"><img src="<?=$v[1]?>" width="<?=$tmpWidth?>" border="<?=$tmpBorder?>" alt="<?=$v[2]?>"></a></p>
<p> </div></p>
<p> <?php } ?></p>
<p></div></p>
<p><strong>
이 스킨을 사용해서 따라다니는 스크롤을 이용하고 있는데 array('http://untitled.untitle311apyxry1w48.com/', '/img/mainimmg4.png', 'untitled', '_blank'),
여기부분에 이미지 말고 div로 감싸서 텍스트나 박스같은걸 출력하고 싶은데 가로부분안에 코드를 어떤식으로 써야지 되는걸까여,,?공부중이라 아무리 검색해봐도 모르겠네여ㅠㅠ바쁘실텐데 알려주시면 감사하겠습니다!ㅠㅠ
답변 2개
※ 수정된 코드 ~ xxx.php
</p>
<p><?php
$tmpWidth = '150';
$tmpMarginBottom = '5';
$tmpBorder = '0';
$arrL = array(
array('#', '텍스트 콘텐츠 L1', '_blank'),
array('<a href="http://example.com'," target="_blank" rel="noopener noreferrer">http://example.com',</a> '텍스트 콘텐츠 L2', '_blank'),
array('<a href="http://example.com'," target="_blank" rel="noopener noreferrer">http://example.com',</a> '텍스트 콘텐츠 L3', '_blank'),
array('<a href="http://example.com'," target="_blank" rel="noopener noreferrer">http://example.com',</a> '텍스트 콘텐츠 L4', '_blank')
);
$arrR = array(
array('<a href="http://example.com'," target="_blank" rel="noopener noreferrer">http://example.com',</a> '텍스트 콘텐츠 R1', '_blank'),
array('<a href="http://example.com'," target="_blank" rel="noopener noreferrer">http://example.com',</a> '텍스트 콘텐츠 R2', '_blank'),
array('<a href="http://example.com'," target="_blank" rel="noopener noreferrer">http://example.com',</a> '텍스트 콘텐츠 R3', '_blank'),
array('<a href="http://example.com'," target="_blank" rel="noopener noreferrer">http://example.com',</a> '텍스트 콘텐츠 R4', '_blank')
);
?></p>
<p><div id="floatL">
<?php foreach($arrL as $v){ ?>
<div style="margin-bottom:<?=$tmpMarginBottom?>px; border:1px solid #ddd; padding:10px; width:<?=$tmpWidth?>px;">
<a href="<?=$v[0]?>" target="<?=$v[2]?>"><?=$v[1]?></a>
</div>
<?php } ?>
</div></p>
<p><div id="floatR">
<?php foreach($arrR as $v){ ?>
<div style="margin-bottom:<?=$tmpMarginBottom?>px; border:1px solid #ddd; padding:10px; width:<?=$tmpWidth?>px;">
<a href="<?=$v[0]?>" target="<?=$v[2]?>"><?=$v[1]?></a>
</div>
<?php } ?>
</div></p>
<p>
댓글을 작성하려면 로그인이 필요합니다.
<a href="<?=$v[0]?>" target="<?=$v[3]?>"><img src="<?=$v[1]?>" width="<?=$tmpWidth?>" border="<?=$tmpBorder?>" alt="<?=$v[2]?>"></a></code></pre> <p><code>=></code></p> <p><code><a href="<?php echo $v[0]?>" target="<?php echo $v[3]?>"><div title="<?php echo $v[2]?>" style="width:120px;height:100px"><?php echo $v[2]?></div></a></code></p> <p><code>
이런식으로 수정하면 되것 같네요.
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인