Hi, ich bekomme diesen Tooltip nicht zum laufen. Ich habe bisher diesen code
ich möchte den "Click" tip der dort zum testen ist.
Danke für eure Hilfe.
Lg
PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Unbenanntes Dokument</title>
<script type='text/javascript' src='js/prototype.js'></script>
<script type='text/javascript' src='js/prototip.js'></script>
<link rel="stylesheet" type="text/css" href="css/prototip.css" />
<script type="text/javascript" language="javascript">
new Tip('demo_click1', "Tooltips can be set to show on click.", {
title: "Click",
closeButton: true,
showOn: 'click',
hideOn: { element: 'closeButton', event: 'click'},
stem: 'bottomMiddle',
hook: { target: 'topMiddle', tip: 'bottomMiddle' },
offset: { x: 0, y: -2 },
width: 'auto'
});
new Tip('demo_click2', "Click the element again to close this tooltip.", {
title: "Toggle",
style: 'protoblue',
showOn: 'click',
hideOn: 'click',
target: $('demo_click2').up('li'),
stem: 'bottomLeft',
hook: { target: 'topRight', tip: 'bottomLeft' },
offset: { x: -6, y: 0 }
});
</script>
</head>
<li class='box'>
<div class='wrapper'>
<div class='demo' id='demo_click1' style='margin-right: 2px' new Tip(element, 'content');>asdasdasd</div>
<div class='description'>Click</div>
</div>
</li>
<body>
</body>
</html>
Danke für eure Hilfe.
Lg