Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
Popup i CSS

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Client-side
View previous topic :: View next topic  
Author Message
Zeus



Joined: 09 Sep 2003
Posts: 775
Location: Čakovec

PostPosted: 09.12.2008 16:54    Post subject: Popup i CSS Add user to your forum ignore list Reply with quote

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, '&quot;');
      smileyPopupWindow.document.write('<a href="javascript:void(0);" onclick="window.opener.replaceText(&quot; ' + smilies_for_window[i][0] + '&quot;, 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 Smile
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
View user's profile Send private message Twitter profile
sphx



Joined: 02 Jun 2004
Posts: 109
Location: Split

PostPosted: 09.12.2008 17:30    Post subject: Add user to your forum ignore list Reply with quote

dodaj prije <title>:

<link rel="stylesheet" href="putanja?" type="text/css">
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Zeus



Joined: 09 Sep 2003
Posts: 775
Location: Čakovec

PostPosted: 09.12.2008 18:51    Post subject: Add user to your forum ignore list Reply with quote

sphx wrote:
dodaj prije <title>:

<link rel="stylesheet" href="putanja?" type="text/css">


Pa kak to nisam sam skuzio, hehe... hvala!
Back to top
View user's profile Send private message Twitter profile
sphx



Joined: 02 Jun 2004
Posts: 109
Location: Split

PostPosted: 09.12.2008 20:28    Post subject: Add user to your forum ignore list Reply with quote

i drugi put Wink
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Client-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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