当我点击它时,UIWebView有相机图标,我想显示window.JSInterface.slideshow()
内的所有图像。但是如何在onClick
上启用UIWebView
事件(此处课程中有onClick
相机图标)
我从服务中得到的字符串。
<style>
.rslides img
{
display: block; max-width: 98%; margin: 0 auto; min-height:160px; min-width:320px; background-image: url("http://apps.xxxxx.com/interface/api/assets/placeholder.png"); background-repeat:no-repeat;
}
.over
{
background-image: url("http://apps.xxxxxx.com/interface/api/assets/camera.png"); background-repeat:no-repeat; width:48px; height:48px; position: relative; left:20%; top:-50px; z-index:51;
}
</style>
<div class="rslides" onclick="window.JSInterface.slideshow('6383232',
'http://xxxxx.xxxxx.com/multimedia/dynamic/02094/Nanbenda_Movie_Sti_2094062g.jpg,
http://xxxx.xxxxx.com/multimedia/dynamic/02094/Nanbenda_Movie_Sti_2094061g.jpg,
http://xxxx.xxxxx.com/multimedia/dynamic/02094/Nanbenda_Movie_Sti_2094060g.jpg,
http://xxxx.xxxxx.com/multimedia/dynamic/02094/Nanbenda_Movie_Sti_2094059g.jpg,
http://xxxx.xxxxx.com/multimedia/dynamic/02094/Nanbenda_Movie_Sti_2094057g.jpg,
http://xxxx.xxxxx.com/multimedia/dynamic/02094/Nanbenda_Movie_Sti_2094058g.jpg');">
<img src="http://xxxx.xxxxx.com/multimedia/dynamic/02094/Nanbenda_Movie_Sti_2094062g.jpg"/>
</div>
<div class="over" onclick="window.JSInterface.slideshow('6383232',
'http://xxxx.xxxxx.com/multimedia/dynamic/02094/Nanbenda_Movie_Sti_2094062g.jpg,
http://xxxx.xxxxx.com/multimedia/dynamic/02094/Nanbenda_Movie_Sti_2094061g.jpg,
http://xxxx.xxxxx.com/multimedia/dynamic/02094/Nanbenda_Movie_Sti_2094060g.jpg,
http://xxxx.xxxxx.com/multimedia/dynamic/02094/Nanbenda_Movie_Sti_2094059g.jpg,
http://xxxx.xxxxx.com/multimedia/dynamic/02094/Nanbenda_Movie_Sti_2094057g.jpg,
http://xxxx.xxxxx.com/multimedia/dynamic/02094/Nanbenda_Movie_Sti_2094058g.jpg');">
</div>
答案 0 :(得分:0)
webView:shouldStartLoadWithRequest:navigationType: