Google Site Hover Card

非 Y 不嫁゛ 提交于 2019-12-25 05:51:31

问题


On a Google Site I want to be able to show a hover card with additional information (picture, etc) if the user moves his mouse over a name.

I've found ways to achieve this through Java Script and CSS, but I can't get either method to work for Google Sites.

How can I achieve this aim?


回答1:


You can integrate you script ( javascript , css ) on the Google Sites with app engine. https://developers.google.com/appengine/?csw=1

You can download this Application , put your script in the cloub and communicate with your Google Sites. You need to install python for you Computer

http://obtiva.com/blog/50-deploying-a-javascript-application-to-google-appengine-in-30-minutes

If you need just to integrate only CSS on your Google sites you need to add Css code on the Html Box on your Google Sites.

Example :

<object>

<style type="text/css">

 .roll
{
font-family: arial, helvetica, sans-serif;
margin: 0;
padding: 10;
}

.roll a
{
padding: 10;
display: block;
color: #000000;
font-size: 18px;
width: 150px;
height: 18px;
display: block;
text-decoration: none;
}

a:hover
{
background-color: #ccc;
color: #eee;
}

.roll
{
cursor: pointer;
}

</style>
<div class="roll"><br>
<a href="#">Rollover Texte 01</a><br>
<a href="#">Rollover Texte 02</a>
</div>
</object>


来源:https://stackoverflow.com/questions/24432656/google-site-hover-card

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!