i want to display slides (pdf files) in (iframe) without use script
up vote
0
down vote
favorite
i want the same idea in this code without use script element
just subroutine in .aspx.cs page ?
Because I got a problem running when i use script element in content page of page master
<script type="text/javascript">
function display(id) {
hideAndStopAll()
var slide = document.getElementById(id);
slide.style.display = 'block';
}
var ids= ['ch1','ch2','ch3','ch4','ch5','ch6','ch7','ch8','ch9','ch10']
function hideAndStopAll(){
for(i=0;i<ids.length;i++){
var sli = document.getElementById(ids[i]);
sli.style.display='none'
}
}
</script>
<div> <a onclick="display('ch1');"> Slide Ch1 </a> </div>
<div> <a onclick="display('ch2');"> Slide Ch2 </a> </div>
<div> <a onclick="display('ch3');"> Slide Ch3 </a> </div>
<div> <a onclick="display('ch4');"> Slide Ch4 </a> </div>
<div> <a onclick="display('ch5');"> Slide Ch5 </a> </div>
<div> <a onclick="display('ch6');"> Slide Ch6 </a> </div>
<div> <a onclick="display('ch7');"> Slide Ch7 </a> </div>
<div> <a onclick="display('ch8');"> Slide Ch8 </a> </div>
<div> <a onclick="display('ch9');"> Slide Ch9 </a> </div>
<div> <a onclick="display('ch10');">Slide Ch10</a> </div>
</section>
<iframe id="ch1" src="ch1.pdf"> </iframe>
<iframe id="ch2" src="ch2.pdf"> </iframe>
<iframe id="ch3" src="ch3.pdf"> </iframe>
<iframe id="ch4" src="ch4.pdf"> </iframe>
<iframe id="ch5" src="ch5.pdf"> </iframe>
<iframe id="ch6" src="ch6.pdf"> </iframe>
<iframe id="ch7" src="ch7.pdf"> </iframe>
<iframe id="ch8" src="ch8.pdf"> </iframe>
<iframe id="ch9" src="ch9.pdf"> </iframe>
<iframe id="ch10" src="ch10.pdf"> </iframe>
asp.net
add a comment |
up vote
0
down vote
favorite
i want the same idea in this code without use script element
just subroutine in .aspx.cs page ?
Because I got a problem running when i use script element in content page of page master
<script type="text/javascript">
function display(id) {
hideAndStopAll()
var slide = document.getElementById(id);
slide.style.display = 'block';
}
var ids= ['ch1','ch2','ch3','ch4','ch5','ch6','ch7','ch8','ch9','ch10']
function hideAndStopAll(){
for(i=0;i<ids.length;i++){
var sli = document.getElementById(ids[i]);
sli.style.display='none'
}
}
</script>
<div> <a onclick="display('ch1');"> Slide Ch1 </a> </div>
<div> <a onclick="display('ch2');"> Slide Ch2 </a> </div>
<div> <a onclick="display('ch3');"> Slide Ch3 </a> </div>
<div> <a onclick="display('ch4');"> Slide Ch4 </a> </div>
<div> <a onclick="display('ch5');"> Slide Ch5 </a> </div>
<div> <a onclick="display('ch6');"> Slide Ch6 </a> </div>
<div> <a onclick="display('ch7');"> Slide Ch7 </a> </div>
<div> <a onclick="display('ch8');"> Slide Ch8 </a> </div>
<div> <a onclick="display('ch9');"> Slide Ch9 </a> </div>
<div> <a onclick="display('ch10');">Slide Ch10</a> </div>
</section>
<iframe id="ch1" src="ch1.pdf"> </iframe>
<iframe id="ch2" src="ch2.pdf"> </iframe>
<iframe id="ch3" src="ch3.pdf"> </iframe>
<iframe id="ch4" src="ch4.pdf"> </iframe>
<iframe id="ch5" src="ch5.pdf"> </iframe>
<iframe id="ch6" src="ch6.pdf"> </iframe>
<iframe id="ch7" src="ch7.pdf"> </iframe>
<iframe id="ch8" src="ch8.pdf"> </iframe>
<iframe id="ch9" src="ch9.pdf"> </iframe>
<iframe id="ch10" src="ch10.pdf"> </iframe>
asp.net
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
i want the same idea in this code without use script element
just subroutine in .aspx.cs page ?
Because I got a problem running when i use script element in content page of page master
<script type="text/javascript">
function display(id) {
hideAndStopAll()
var slide = document.getElementById(id);
slide.style.display = 'block';
}
var ids= ['ch1','ch2','ch3','ch4','ch5','ch6','ch7','ch8','ch9','ch10']
function hideAndStopAll(){
for(i=0;i<ids.length;i++){
var sli = document.getElementById(ids[i]);
sli.style.display='none'
}
}
</script>
<div> <a onclick="display('ch1');"> Slide Ch1 </a> </div>
<div> <a onclick="display('ch2');"> Slide Ch2 </a> </div>
<div> <a onclick="display('ch3');"> Slide Ch3 </a> </div>
<div> <a onclick="display('ch4');"> Slide Ch4 </a> </div>
<div> <a onclick="display('ch5');"> Slide Ch5 </a> </div>
<div> <a onclick="display('ch6');"> Slide Ch6 </a> </div>
<div> <a onclick="display('ch7');"> Slide Ch7 </a> </div>
<div> <a onclick="display('ch8');"> Slide Ch8 </a> </div>
<div> <a onclick="display('ch9');"> Slide Ch9 </a> </div>
<div> <a onclick="display('ch10');">Slide Ch10</a> </div>
</section>
<iframe id="ch1" src="ch1.pdf"> </iframe>
<iframe id="ch2" src="ch2.pdf"> </iframe>
<iframe id="ch3" src="ch3.pdf"> </iframe>
<iframe id="ch4" src="ch4.pdf"> </iframe>
<iframe id="ch5" src="ch5.pdf"> </iframe>
<iframe id="ch6" src="ch6.pdf"> </iframe>
<iframe id="ch7" src="ch7.pdf"> </iframe>
<iframe id="ch8" src="ch8.pdf"> </iframe>
<iframe id="ch9" src="ch9.pdf"> </iframe>
<iframe id="ch10" src="ch10.pdf"> </iframe>
asp.net
i want the same idea in this code without use script element
just subroutine in .aspx.cs page ?
Because I got a problem running when i use script element in content page of page master
<script type="text/javascript">
function display(id) {
hideAndStopAll()
var slide = document.getElementById(id);
slide.style.display = 'block';
}
var ids= ['ch1','ch2','ch3','ch4','ch5','ch6','ch7','ch8','ch9','ch10']
function hideAndStopAll(){
for(i=0;i<ids.length;i++){
var sli = document.getElementById(ids[i]);
sli.style.display='none'
}
}
</script>
<div> <a onclick="display('ch1');"> Slide Ch1 </a> </div>
<div> <a onclick="display('ch2');"> Slide Ch2 </a> </div>
<div> <a onclick="display('ch3');"> Slide Ch3 </a> </div>
<div> <a onclick="display('ch4');"> Slide Ch4 </a> </div>
<div> <a onclick="display('ch5');"> Slide Ch5 </a> </div>
<div> <a onclick="display('ch6');"> Slide Ch6 </a> </div>
<div> <a onclick="display('ch7');"> Slide Ch7 </a> </div>
<div> <a onclick="display('ch8');"> Slide Ch8 </a> </div>
<div> <a onclick="display('ch9');"> Slide Ch9 </a> </div>
<div> <a onclick="display('ch10');">Slide Ch10</a> </div>
</section>
<iframe id="ch1" src="ch1.pdf"> </iframe>
<iframe id="ch2" src="ch2.pdf"> </iframe>
<iframe id="ch3" src="ch3.pdf"> </iframe>
<iframe id="ch4" src="ch4.pdf"> </iframe>
<iframe id="ch5" src="ch5.pdf"> </iframe>
<iframe id="ch6" src="ch6.pdf"> </iframe>
<iframe id="ch7" src="ch7.pdf"> </iframe>
<iframe id="ch8" src="ch8.pdf"> </iframe>
<iframe id="ch9" src="ch9.pdf"> </iframe>
<iframe id="ch10" src="ch10.pdf"> </iframe>
asp.net
asp.net
edited Nov 11 at 3:11
D-Shih
24.1k61331
24.1k61331
asked Nov 11 at 3:01
samz
11
11
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53245483%2fi-want-to-display-slides-pdf-files-in-iframe-without-use-script%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown