View previous topic :: View next topic
Author
Message
Zeus Joined: 09 Sep 2003 Posts: 775 Location: Čakovec
Posted: 09.12.2008 17:54 Post subject: Popup i CSS
Code: function moreForumSmileys()
{
var i;
if (smileyPopupWindow)
smileyPopupWindow.close();
smileyPopupWindow = window.open("", "add_smileys", "toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,width=480,height=640,resizable=yes");
smileyPopupWindow.document.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n<html>');
smileyPopupWindow.document.write('\n\t<head>\n\t\t<title><?php echo _FB_EMOTICONS_ADDITIONAL_EMOTICONS; ?></title>\n\t\t <style>\n\t\t.tborder\n\t\t\t{\n\t\t\t\t\tborder-top: solid 1px #454545;\n\t\t\t\t\tborder-left: solid 1px #454545;\n\t\t\t\t\tborder-right: solid 1px black;\n\t\t\t\t\tborder-bottom: solid 1px black;\n\t\t\t\t\tbackground-color: #ffffff;\n\t\t\t\t\tpadding: 0px;\n\t\t\t\t\tborder-collapse:collapse;\n\t\t\t}\n\t\tbody\n\t\t\t{\n\t\t\t\t\tbackground-color: #cccccc;\n\t\t\t\t\tmargin: 0px;\n\t\t\t\t\tpadding: 5px 20px 5px 20px;\n\t\t\t}\n\t\tbody, td\n\t\t\t{\n\t\t\t\t\tcolor: #ffffff;\n\t\t\t\t\tfont-size: small;\n\t\t\t\t\tfont-family: tahoma, helvetica, serif;\n\t\t\t}\n\t\t.titlebg, tr.titlebg td\n\t\t\t{\n\t\t\t\t\tbackground-color: #333333;\n\t\t\t\t\tfont-weight: bold;\n\t\t\t\t\tcolor: #eeeeee;\n\t\t\t\t\tfont-style: normal;\n\t\t\t}\n\t\t.windowbg\n\t\t\t{\n\t\t\t\t\tfont-family: tahoma, helvetica, serif;\n\t\t\t\t\tcolor: #ffffff;\n\t\t\t\t\tbackground-color: #eeeeee;\n\t\t\t\t\tborder-top: solid 1px #606060;\n\t\t\t\t\tborder-left: solid 1px #606060;\n\t\t\t\t\tborder-right: solid 1px black;\n\t\t\t\t\tborder-bottom: solid 1px black;\n\t\t\t}\n\t\t</style> \n\t</head>');
smileyPopupWindow.document.write('\n\t<body style="margin: 1ex;">\n\t\t<table width="100%" cellpadding="5" cellspacing="0" border="0" class="tborder">\n\t\t\t<tr class="titlebg"><td align="left"><?php echo _FB_EMOTICONS_PICK_A_SMILEY; ?></td></tr>\n\t\t\t<tr class="windowbg"><td align="left">');
for (i = 0; i < smilies_for_window.length; i++)
{
smilies_for_window[i][2] = smilies_for_window[i][2].replace(/"/g, '"');
smileyPopupWindow.document.write('<a href="javascript:void(0);" onclick="window.opener.replaceText(" ' + smilies_for_window[i][0] + '", window.opener.document.forms.postform.message); window.focus(); return false;"><img src="<?php echo(JB_URLEMOTIONSPATH);?>' + smilies_for_window[i][1] + '" alt="' + smilies_for_window[i][2] + '" title="' + smilies_for_window[i][2] + '" style="padding: 4px;" border="0" /></a> ');
}
smileyPopupWindow.document.write("<br />");
smileyPopupWindow.document.write('</td></tr>\n\t\t\t<tr><td align="center" class="windowbg"><a href="javascript:window.close();\"><?php echo _FB_EMOTICONS_CLOSE_WINDOW; ?></a></td></tr>\n\t\t</table>\n\t</body>\n</html>');
smileyPopupWindow.document.close();
}
Imam ovu funkciju i u nju zelim includat neki CSS fajl. Kako to uciniti? Pokusavao sam na razne nacine, ali nista ne radi
Konkretno, za ovaj link Code: <?php echo _FB_EMOTICONS_CLOSE_WINDOW; ?>
trebam boju linka, i hover linka.
_FB_EMOTICONS_CLOSE_WINDOW = "Neki tekst"
Back to top
sphx Joined: 02 Jun 2004 Posts: 109 Location: Split
Posted: 09.12.2008 18:30 Post subject:
dodaj prije <title>:
<link rel="stylesheet" href="putanja?" type="text/css">
Back to top
Zeus Joined: 09 Sep 2003 Posts: 775 Location: Čakovec
Posted: 09.12.2008 19:51 Post subject:
sphx wrote: dodaj prije <title>:
<link rel="stylesheet" href="putanja?" type="text/css">
Pa kak to nisam sam skuzio, hehe... hvala!
Back to top
sphx Joined: 02 Jun 2004 Posts: 109 Location: Split
Posted: 09.12.2008 21:28 Post subject:
i drugi put
Back to top
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
Powered by phpBB © 2001, 2005 phpBB Group