需要可点击的html代码文本 [英] need clickable text for html code

查看:132
本文介绍了需要可点击的html代码文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有横幅页面html代码,我需要可点击的文本来打开那个横幅页面,这意味着如果有人点击文本然后该横幅页面应该打开..所以我需要可点击的文本为我的横幅HTML代码。下面是横幅代码..但它是横幅类型..我需要它可点击的文字类型



< script type =text / javascriptsrc =http: //adhitzads.com/787096\"></script>

解决方案

如果我理解正确,您正在尝试加载包含图片横幅的html页面到某个点击事件的调用html页面,然后尝试这个并适应你的需要:

main.html页面:

 <  !DOCTYPE     html  >  
< html >
< head >
< 离谱pt src = http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js > < / script >
< script > ;

(文件)。就绪(函数(){

( p)点击(函数(){

i have banner page html code, i need clickable text to open that banner page, it means if someone clicks on text then that banner page should open.. so i need clickable text for my banner html code. below is banner code.. but it is banner type.. i need it clickable text type

<script type="text/javascript" src="http://adhitzads.com/787096"></script>

解决方案

If I understand you correctly, you are trying to load an html page that contains image banner to the calling html page on some click event, then try this out and adapt to your need:
the main.html page:

<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script>


(document).ready(function(){


("p").click(function(){


这篇关于需要可点击的html代码文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆